00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _GATPIPE_H_
00020 #define _GATPIPE_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(GATPipe);
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 void GATPipe_Destroy(GATPipe *peep);
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 GATType GATPipe_GetType(GATPipe_const peep);
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 GATResult GATPipe_Clone(GATPipe_const peep, GATPipe *new_peep);
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 GATResult
00081 GATPipe_Equals(GATPipe_const lhs, GATPipe_const rhs, GATBool *isequal);
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095 GATResult
00096 GATPipe_GetInterface(GATPipe_const peep, GATInterface iftype, void const **ifp);
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108 GATPipe
00109 GATPipe_Create(GATContext context, GATPreferences_const preferences,
00110 void *information);
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133 GATResult GATPipe_AddMetricListener(GATPipe peep, GATMetricListener listener,
00134 void *listener_data, GATMetric metric, GATuint32 *cookie);
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153 GATResult
00154 GATPipe_RegisterPolling(GATPipe peep, GATMetric metric,
00155 GATMetricEvent *event, GATuint32 *cookie);
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171 GATResult GATPipe_RemoveRegisteredMetric(GATPipe peep, GATMetric metric,
00172 GATuint32 cookie);
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186 GATResult GATPipe_GetMetrics(GATPipe_const peep, GATList_GATMetric *metrics);
00187
00188
00189
00190
00191
00192 GATResult GATPipe_Read(GATPipe object, void *buffer, GATuint32 size, GATuint32 *read_bytes);
00193
00194
00195 GATResult GATPipe_Write(GATPipe object, void const *buffer, GATuint32 size, GATuint32 *written_bytes);
00196
00197
00198 GATResult GATPipe_Seek(GATPipe object, GATOrigin origin, GATint32 offset, GATuint32 *new_position);
00199
00200
00201 GATResult GATPipe_Close(GATPipe object);
00202
00203
00204 #ifdef __cplusplus
00205 }
00206 #endif
00207
00208 #endif
00209