00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _GATENDPOINT_H_
00020 #define _GATENDPOINT_H_ 1
00021
00022 #include "GATType.h"
00023 #include "GATObject.h"
00024
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028
00029
00030 GATOBJECT_DECLARE_CONVERTERS(GATEndpoint);
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 void GATEndpoint_Destroy(GATEndpoint *endpoint);
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 GATType GATEndpoint_GetType(GATEndpoint_const endpoint);
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 GATResult GATEndpoint_Clone(GATEndpoint_const endpoint, GATEndpoint *new_endpoint);
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 GATResult GATEndpoint_Equals(GATEndpoint_const lhs, GATEndpoint_const rhs, GATBool *isequal);
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094 GATResult
00095 GATEndpoint_GetInterface(GATEndpoint_const endpoint, GATInterface iftype,
00096 void const **ifp);
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107 GATEndpoint
00108 GATEndpoint_Create(GATContext context, GATPreferences_const preferences);
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120 GATResult GATEndpoint_Connect( GATEndpoint_const endpoint, GATPipe *peep);
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131 GATResult GATEndpoint_Listen( GATEndpoint_const endpoint, GATPipe *peep);
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146 GATResult GATEndpoint_AddGATPipeListener( GATEndpoint_const endpoint, GATPipeListener peepListener, void *listenerData);
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170 GATResult GATEndpoint_AddMetricListener(GATEndpoint endpoint, GATMetricListener listener,
00171 void *listener_data, GATMetric metric, GATuint32 *cookie);
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190 GATResult
00191 GATEndpoint_RegisterPolling(GATEndpoint endpoint, GATMetric metric,
00192 GATMetricEvent *event, GATuint32 *cookie);
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208 GATResult GATEndpoint_RemoveRegisteredMetric(GATEndpoint endpoint, GATMetric metric,
00209 GATuint32 cookie);
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223 GATResult GATEndpoint_GetMetrics(GATEndpoint_const endpoint, GATList_GATMetric *metrics);
00224
00225
00226
00227 #define GATENDPOINT_VERSION1 0x0100
00228 #define GATENDPOINT_LASTVERSION GATENDPOINT_VERSION1
00229 #define GATENDPOINT_MINOR_MASK 0x00ff
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244 GATResult GATEndpoint_Serialise(GATEndpoint endpoint, GATObject stream, GATBool clear_dirty);
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260 GATEndpoint GATEndpoint_DeSerialise(GATContext context, GATObject stream,
00261 GATResult *result);
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273 GATResult GATEndpoint_GetIsDirty(GATEndpoint_const endpoint, GATBool *isdirty);
00274
00275 #ifdef __cplusplus
00276 }
00277 #endif
00278
00279 #endif
00280