00001 #ifndef _PDSDEFS_H_
00002 #define _PDSDEFS_H_
00003
00004
00005
00006
00007
00008
00013 #define PDS_ID_SIZE 32
00014
00015 #include "atl.h"
00016
00018 typedef struct _pds_service_struct* pds_service;
00019
00021 typedef struct _pds_entity_id_t_struct
00022 {
00023 unsigned char id[PDS_ID_SIZE];
00024 } pds_entity_id_t, *pds_entity_id_t_ptr;
00025
00027 typedef struct _pds_context_id_t_struct
00028 {
00029 unsigned char id[PDS_ID_SIZE];
00030 } pds_context_id_t, *pds_context_id_t_ptr;
00031
00033 typedef struct _pds_domain_id_t_struct
00034 {
00035 unsigned char id[PDS_ID_SIZE];
00036 } pds_domain_id_t, *pds_domain_id_t_ptr;
00037
00041 typedef struct _pds_entity_data_t_struct
00042 {
00043 unsigned char *data;
00044 int data_size;
00045 attr_value_type data_type;
00046 } pds_entity_data_t, *pds_entity_data_t_ptr;
00047
00048
00049
00050
00051
00052
00053 #define PDS_ENTITY_CHANGE_BASE_VAL 300
00054
00059 #define PDS_ENTITY_CHANGE_CREATION (PDS_ENTITY_CHANGE_BASE_VAL + 1)
00060
00064 #define PDS_ENTITY_CHANGE_ATTRS (PDS_ENTITY_CHANGE_BASE_VAL + 2)
00065
00066
00070 #define PDS_ENTITY_CHANGE_BIND (PDS_ENTITY_CHANGE_BASE_VAL + 3)
00071 #define PDS_ENTITY_CHANGE_UNBIND (PDS_ENTITY_CHANGE_BASE_VAL + 4)
00072
00073
00077 #define PDS_ENTITY_CHANGE_DELETION (PDS_ENTITY_CHANGE_BASE_VAL + 5)
00078
00082 #define PDS_ENTITY_CHANGE_DATA (PDS_ENTITY_CHANGE_BASE_VAL + 6)
00083
00084 #define PDS_CONTEXT_CHANGE_BASE_VAL 320
00085 #define PDS_CONTEXT_CHANGE_CREATION (PDS_CONTEXT_CHANGE_BASE_VAL + 1)
00086 #define PDS_CONTEXT_CHANGE_ATTRS (PDS_CONTEXT_CHANGE_BASE_VAL + 2)
00087 #define PDS_CONTEXT_CHANGE_BIND (PDS_CONTEXT_CHANGE_BASE_VAL + 3)
00088 #define PDS_CONTEXT_CHANGE_UNBIND (PDS_CONTEXT_CHANGE_BASE_VAL + 4)
00089 #define PDS_CONTEXT_CHANGE_DELETION (PDS_CONTEXT_CHANGE_BASE_VAL + 5)
00090
00091 #define PDS_DOMAIN_CHANGE_BASE_VAL 350
00092 #define PDS_DOMAIN_CHANGE_CONTEXT_CHANGE (PDS_DOMAIN_CHANGE_BASE_VAL + 1)
00093 #define PDS_DOMAIN_CHANGE_ENTITY_CHANGE (PDS_DOMAIN_CHANGE_BASE_VAL + 2)
00094 typedef struct _pds_entity_change_event_struct
00095 {
00096 int type;
00097 const char *desc;
00098 const char *fullname;
00099 pds_entity_id_t entity_id;
00100 pds_entity_data_t entity_data;
00101 } pds_entity_change_event, *pds_entity_change_event_ptr;
00102
00103 typedef struct _pds_context_change_event_struct
00104 {
00105 int type;
00106 char *desc;
00107 char *fullname;
00108 pds_context_id_t context_id;
00109 } pds_context_change_event, *pds_context_change_event_ptr;
00110
00111 typedef struct _pds_domain_change_event_struct
00112 {
00113 int type;
00114 char* desc;
00115 char* d_name;
00116 char* d_type;
00117 int d_version;
00118 char* d_app_name;
00119 pds_domain_id_t domain_id;
00120 int event_type;
00121 char* event_fullname;
00122 char* event_desc;
00123 } pds_domain_change_event, *pds_domain_change_event_ptr;
00124
00125
00126
00127
00128 #define OnlyEntityBindings 0x1
00129 #define OnlyContextBindings 0x2
00130
00131 #define GetDataBuffer 0x2
00132 #define GetDataSize 0x4
00133 #define GetDataType 0x8
00134
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210 #endif