haiku/headers/private/package/PackageDaemonDefs.h
Ingo Weinhold 62f7022a82 package kit: get active packages list from daemon
* daemon: Implement private message protocol to retrieve the active
  packages.
* BPackageRoster::GetActivePackages(): Get the active packages list
  from the daemon.
2013-04-11 02:03:25 +02:00

38 lines
890 B
C++

/*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Ingo Weinhold <ingo_weinhold@gmx.de>
*/
#ifndef _PACKAGE__PRIVATE__PACKAGE_DAEMON_DEFS_H_
#define _PACKAGE__PRIVATE__PACKAGE_DAEMON_DEFS_H_
namespace BPackageKit {
namespace BPrivate {
#define PACKAGE_DAEMON_APP_SIGNATURE "application/x-vnd.haiku-package_daemon"
// message codes for requests to and replies from the daemon
enum {
MESSAGE_GET_PACKAGES = 'PKGG',
// "location": int32
// the respective installation location constant
MESSAGE_GET_PACKAGES_REPLY = 'PKGR'
// "active packages": string[]
// file names of the active packages (no path)
// "inactive packages": string[]
// file names of the inactive packages (no path)
};
#endif // _PACKAGE__PRIVATE__PACKAGE_DAEMON_DEFS_H_
} // namespace BPrivate
} // namespace BPackageKit