00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _GATMONITORABLE_H_
00026 #define _GATMONITORABLE_H_ 1
00027
00028 #include "GATType.h"
00029 #include "GATList.h"
00030
00031
00032 typedef struct GATMonitorable_Impl_S *GATMonitorable_Impl;
00033 typedef struct GATMonitorable_Impl_S const *GATMonitorable_Impl_const;
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00039
00040 GATOBJECT_DECLARE_CONVERTERS(GATMonitorable_Impl);
00041
00042
00043 GATLIST_DECLARE_QUALIFIED(extern, GATMetric, GATList_GATMetric);
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 GATMonitorable_Impl GATMonitorable_Impl_Create(GATList_GATMetric metrics);
00055
00056
00057
00058
00059
00060
00061
00062 void GATMonitorable_Impl_Destroy(GATMonitorable_Impl *monitorable);
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 GATResult
00078 GATMonitorable_Impl_Equals(GATMonitorable_Impl_const lhs,
00079 GATMonitorable_Impl_const rhs, GATBool *isequal);
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093 GATResult
00094 GATMonitorable_Impl_Clone(GATMonitorable_Impl_const monitorable,
00095 GATMonitorable_Impl *new_object);
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118 GATResult
00119 GATMonitorable_Impl_AddMetricListener(GATMonitorable_Impl monitorable,
00120 GATMetricListener listener, void *listener_data, GATMetric metric,
00121 GATuint32 *cookie);
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140 GATResult
00141 GATMonitorable_Impl_RegisterPolling(GATMonitorable_Impl monitorable,
00142 GATMetric metric, GATMetricEvent *event, GATuint32 *cookie);
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159 GATResult
00160 GATMonitorable_Impl_RemoveRegisteredMetric(GATMonitorable_Impl monitorable,
00161 GATMetric metric, GATuint32 cookie);
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175 GATResult
00176 GATMonitorable_Impl_GetMetrics(GATMonitorable_Impl_const monitorable,
00177 GATList_GATMetric *metrics);
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191 GATResult
00192 GATMonitorable_Impl_FireEvent(GATMonitorable_Impl_const monitorable,
00193 GATMetric metric, GATMetricEvent event);
00194
00195 #ifdef __cplusplus
00196 }
00197 #endif
00198
00199 #endif