Added message and codes, a flat_app_info structure and the name of roster side created app looper ports.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@458 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -28,23 +28,30 @@
|
|||||||
#define REGISTRAR_DEFS_H
|
#define REGISTRAR_DEFS_H
|
||||||
|
|
||||||
#include <Errors.h>
|
#include <Errors.h>
|
||||||
|
#include <Roster.h>
|
||||||
|
|
||||||
// names
|
// names
|
||||||
extern const char *kRegistrarSignature;
|
extern const char *kRegistrarSignature;
|
||||||
extern const char *kRosterThreadName;
|
extern const char *kRosterThreadName;
|
||||||
extern const char *kRosterPortName;
|
extern const char *kRosterPortName;
|
||||||
|
extern const char *kRAppLooperPortName;
|
||||||
|
|
||||||
// message constants
|
// message constants
|
||||||
enum {
|
enum {
|
||||||
|
// replies
|
||||||
B_REG_SUCCESS = 'rgsu',
|
B_REG_SUCCESS = 'rgsu',
|
||||||
B_REG_ERROR = 'rger',
|
B_REG_ERROR = 'rger',
|
||||||
|
// general requests
|
||||||
B_REG_GET_MIME_MESSENGER = 'rgmm',
|
B_REG_GET_MIME_MESSENGER = 'rgmm',
|
||||||
B_REG_GET_CLIPBOARD_MESSENGER = 'rgcm',
|
B_REG_GET_CLIPBOARD_MESSENGER = 'rgcm',
|
||||||
|
// roster requests
|
||||||
B_REG_ADD_APP = 'rgaa',
|
B_REG_ADD_APP = 'rgaa',
|
||||||
B_REG_COMPLETE_REGISTRATION = 'rgcr',
|
B_REG_COMPLETE_REGISTRATION = 'rgcr',
|
||||||
B_REG_IS_PRE_REGISTERED = 'rgip',
|
B_REG_IS_PRE_REGISTERED = 'rgip',
|
||||||
B_REG_REMOVE_PRE_REGISTERED_APP = 'rgrp',
|
B_REG_REMOVE_PRE_REGISTERED_APP = 'rgrp',
|
||||||
B_REG_REMOVE_APP = 'rgra',
|
B_REG_REMOVE_APP = 'rgra',
|
||||||
|
B_REG_SET_THREAD_AND_TEAM = 'rgtt',
|
||||||
|
B_REG_GET_RUNNING_APP_INFO = 'rgri',
|
||||||
};
|
};
|
||||||
|
|
||||||
// type constants
|
// type constants
|
||||||
@@ -56,8 +63,25 @@ enum {
|
|||||||
#define B_REGISTRAR_ERROR_BASE (B_ERRORS_END + 1)
|
#define B_REGISTRAR_ERROR_BASE (B_ERRORS_END + 1)
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
// not needed: We have B_ALREADY_RUNNING.
|
B_REG_ALREADY_REGISTERED = B_REGISTRAR_ERROR_BASE,
|
||||||
// B_REG_ALREADY_REGISTERED = B_REGISTRAR_ERROR_BASE,
|
// A team tries to register a second time.
|
||||||
|
B_REG_APP_NOT_REGISTERED,
|
||||||
|
B_REG_APP_NOT_PRE_REGISTERED,
|
||||||
|
};
|
||||||
|
|
||||||
|
// misc constants
|
||||||
|
enum {
|
||||||
|
B_REG_DEFAULT_APP_FLAGS = B_MULTIPLE_LAUNCH | B_ARGV_ONLY
|
||||||
|
| _B_APP_INFO_RESERVED1_,
|
||||||
|
B_REG_APP_LOOPER_PORT_CAPACITY = 100,
|
||||||
|
};
|
||||||
|
|
||||||
|
// structs
|
||||||
|
|
||||||
|
// a flat app_info -- to be found in B_REG_APP_INFO_TYPE message fields
|
||||||
|
struct flat_app_info {
|
||||||
|
app_info info;
|
||||||
|
char ref_name[B_FILE_NAME_LENGTH + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // REGISTRAR_DEFS_H
|
#endif // REGISTRAR_DEFS_H
|
||||||
|
|||||||
@@ -30,4 +30,5 @@
|
|||||||
const char *kRegistrarSignature = "application/x-vnd.OBOS-Registrar";
|
const char *kRegistrarSignature = "application/x-vnd.OBOS-Registrar";
|
||||||
const char *kRosterThreadName = "_obos_roster_thread_";
|
const char *kRosterThreadName = "_obos_roster_thread_";
|
||||||
const char *kRosterPortName = "_obos_roster_port_";
|
const char *kRosterPortName = "_obos_roster_port_";
|
||||||
|
const char *kRAppLooperPortName = "rAppLooperPort";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user