TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

tsp_rpc.h

00001 /*
00002  * Please do not edit this file.
00003  * It was generated using rpcgen.
00004  */
00005 
00006 #ifndef _TSP_RPC_H_RPCGEN
00007 #define _TSP_RPC_H_RPCGEN
00008 
00009 #include <rpc/rpc.h>
00010 
00011 
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015 
00016 
00017 enum TSP_status_t {
00018         TSP_STATUS_OK = 0,
00019         TSP_STATUS_ERROR_UNKNOWN = 1,
00020         TSP_STATUS_ERROR_SEE_STRING = 2,
00021         TSP_STATUS_ERROR_VERSION = 3,
00022         TSP_STATUS_ERROR_SYMBOLS = 4,
00023 };
00024 typedef enum TSP_status_t TSP_status_t;
00025 
00026 struct TSP_answer_open_t {
00027         int version_id;
00028         u_int channel_id;
00029         TSP_status_t status;
00030         char *status_str;
00031 };
00032 typedef struct TSP_answer_open_t TSP_answer_open_t;
00033 
00034 typedef char *TSP_argv_item_t;
00035 
00036 typedef struct {
00037         u_int TSP_argv_t_len;
00038         TSP_argv_item_t *TSP_argv_t_val;
00039 } TSP_argv_t;
00040 
00041 struct TSP_request_open_t {
00042         int version_id;
00043         TSP_argv_t argv;
00044 };
00045 typedef struct TSP_request_open_t TSP_request_open_t;
00046 
00047 struct TSP_request_close_t {
00048         int version_id;
00049         u_int channel_id;
00050 };
00051 typedef struct TSP_request_close_t TSP_request_close_t;
00052 
00053 struct TSP_request_information_t {
00054         int version_id;
00055         u_int channel_id;
00056 };
00057 typedef struct TSP_request_information_t TSP_request_information_t;
00058 
00059 struct TSP_request_feature_t {
00060         int version_id;
00061         u_int channel_id;
00062         u_int feature_words[4];
00063 };
00064 typedef struct TSP_request_feature_t TSP_request_feature_t;
00065 
00066 struct TSP_answer_feature_t {
00067         int version_id;
00068         u_int channel_id;
00069         u_int feature_words[4];
00070         int int_value;
00071         double double_value;
00072         char *string_value;
00073 };
00074 typedef struct TSP_answer_feature_t TSP_answer_feature_t;
00075 
00076 struct TSP_exec_feature_t {
00077         int version_id;
00078         u_int channel_id;
00079         u_int feature_words[4];
00080         int int_value;
00081         double double_value;
00082         char *string_value;
00083 };
00084 typedef struct TSP_exec_feature_t TSP_exec_feature_t;
00085 
00086 struct TSP_sample_symbol_info_t {
00087         char *name;
00088         int provider_global_index;
00089         int provider_group_index;
00090         int provider_group_rank;
00091         char xdr_tsp_t[4];
00092         u_int dimension;
00093         int period;
00094         int phase;
00095 };
00096 typedef struct TSP_sample_symbol_info_t TSP_sample_symbol_info_t;
00097 
00098 typedef struct {
00099         u_int TSP_sample_symbol_info_list_t_len;
00100         TSP_sample_symbol_info_t *TSP_sample_symbol_info_list_t_val;
00101 } TSP_sample_symbol_info_list_t;
00102 
00103 struct TSP_request_sample_t {
00104         int version_id;
00105         u_int channel_id;
00106         u_int feature_words[4];
00107         int consumer_timeout;
00108         TSP_sample_symbol_info_list_t symbols;
00109 };
00110 typedef struct TSP_request_sample_t TSP_request_sample_t;
00111 
00112 struct TSP_answer_sample_t {
00113         int version_id;
00114         u_int channel_id;
00115         int provider_timeout;
00116         int provider_group_number;
00117         TSP_sample_symbol_info_list_t symbols;
00118         double base_frequency;
00119         int max_period;
00120         int max_client_number;
00121         int current_client_number;
00122         TSP_status_t status;
00123 };
00124 typedef struct TSP_answer_sample_t TSP_answer_sample_t;
00125 
00126 struct TSP_request_sample_init_t {
00127         int version_id;
00128         u_int channel_id;
00129 };
00130 typedef struct TSP_request_sample_init_t TSP_request_sample_init_t;
00131 
00132 struct TSP_answer_sample_init_t {
00133         int version_id;
00134         u_int channel_id;
00135         char *data_address;
00136         TSP_status_t status;
00137 };
00138 typedef struct TSP_answer_sample_init_t TSP_answer_sample_init_t;
00139 
00140 struct TSP_asynchronous_sample_symbol_t {
00141         int provider_index;
00142 };
00143 typedef struct TSP_asynchronous_sample_symbol_t TSP_asynchronous_sample_symbol_t;
00144 
00145 struct TSP_request_sample_destroy_t {
00146         int version_id;
00147         u_int channel_id;
00148 };
00149 typedef struct TSP_request_sample_destroy_t TSP_request_sample_destroy_t;
00150 
00151 struct TSP_answer_sample_destroy_t {
00152         int version_id;
00153         u_int channel_id;
00154         int status;
00155 };
00156 typedef struct TSP_answer_sample_destroy_t TSP_answer_sample_destroy_t;
00157 
00158 struct TSP_provider_info_t {
00159         char *info;
00160 };
00161 typedef struct TSP_provider_info_t TSP_provider_info_t;
00162 #define TSP_STRACE_RPC_ERROR(cl, pResult) if(!pResult) { STRACE_ERROR(("%s", clnt_sperror(cl, ""))); }
00163 
00164 #define TSP_RPC 0x31230010
00165 #define TSP_RPC_VERSION_INITIAL 1
00166 
00167 #if defined(__STDC__) || defined(__cplusplus)
00168 #define TSP_PROVIDER_INFORMATION 101
00169 extern  TSP_provider_info_t * tsp_provider_information_1(CLIENT *);
00170 extern  TSP_provider_info_t * tsp_provider_information_1_svc(struct svc_req *);
00171 #define TSP_REQUEST_OPEN 102
00172 extern  TSP_answer_open_t * tsp_request_open_1(TSP_request_open_t , CLIENT *);
00173 extern  TSP_answer_open_t * tsp_request_open_1_svc(TSP_request_open_t , struct svc_req *);
00174 #define TSP_REQUEST_CLOSE 103
00175 extern  void * tsp_request_close_1(TSP_request_close_t , CLIENT *);
00176 extern  void * tsp_request_close_1_svc(TSP_request_close_t , struct svc_req *);
00177 #define TSP_REQUEST_INFORMATION 104
00178 extern  TSP_answer_sample_t * tsp_request_information_1(TSP_request_information_t , CLIENT *);
00179 extern  TSP_answer_sample_t * tsp_request_information_1_svc(TSP_request_information_t , struct svc_req *);
00180 #define TSP_REQUEST_FEATURE 105
00181 extern  TSP_answer_feature_t * tsp_request_feature_1(TSP_request_feature_t , CLIENT *);
00182 extern  TSP_answer_feature_t * tsp_request_feature_1_svc(TSP_request_feature_t , struct svc_req *);
00183 #define TSP_REQUEST_SAMPLE 106
00184 extern  TSP_answer_sample_t * tsp_request_sample_1(TSP_request_sample_t , CLIENT *);
00185 extern  TSP_answer_sample_t * tsp_request_sample_1_svc(TSP_request_sample_t , struct svc_req *);
00186 #define TSP_REQUEST_SAMPLE_INIT 107
00187 extern  TSP_answer_sample_init_t * tsp_request_sample_init_1(TSP_request_sample_init_t , CLIENT *);
00188 extern  TSP_answer_sample_init_t * tsp_request_sample_init_1_svc(TSP_request_sample_init_t , struct svc_req *);
00189 #define TSP_REQUEST_SAMPLE_DESTROY 108
00190 extern  TSP_answer_sample_destroy_t * tsp_request_sample_destroy_1(TSP_request_sample_destroy_t , CLIENT *);
00191 extern  TSP_answer_sample_destroy_t * tsp_request_sample_destroy_1_svc(TSP_request_sample_destroy_t , struct svc_req *);
00192 #define TSP_EXEC_FEATURE 109
00193 extern  void * tsp_exec_feature_1(TSP_exec_feature_t , CLIENT *);
00194 extern  void * tsp_exec_feature_1_svc(TSP_exec_feature_t , struct svc_req *);
00195 extern int tsp_rpc_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
00196 
00197 #else /* K&R C */
00198 #define TSP_PROVIDER_INFORMATION 101
00199 extern  TSP_provider_info_t * tsp_provider_information_1();
00200 extern  TSP_provider_info_t * tsp_provider_information_1_svc();
00201 #define TSP_REQUEST_OPEN 102
00202 extern  TSP_answer_open_t * tsp_request_open_1();
00203 extern  TSP_answer_open_t * tsp_request_open_1_svc();
00204 #define TSP_REQUEST_CLOSE 103
00205 extern  void * tsp_request_close_1();
00206 extern  void * tsp_request_close_1_svc();
00207 #define TSP_REQUEST_INFORMATION 104
00208 extern  TSP_answer_sample_t * tsp_request_information_1();
00209 extern  TSP_answer_sample_t * tsp_request_information_1_svc();
00210 #define TSP_REQUEST_FEATURE 105
00211 extern  TSP_answer_feature_t * tsp_request_feature_1();
00212 extern  TSP_answer_feature_t * tsp_request_feature_1_svc();
00213 #define TSP_REQUEST_SAMPLE 106
00214 extern  TSP_answer_sample_t * tsp_request_sample_1();
00215 extern  TSP_answer_sample_t * tsp_request_sample_1_svc();
00216 #define TSP_REQUEST_SAMPLE_INIT 107
00217 extern  TSP_answer_sample_init_t * tsp_request_sample_init_1();
00218 extern  TSP_answer_sample_init_t * tsp_request_sample_init_1_svc();
00219 #define TSP_REQUEST_SAMPLE_DESTROY 108
00220 extern  TSP_answer_sample_destroy_t * tsp_request_sample_destroy_1();
00221 extern  TSP_answer_sample_destroy_t * tsp_request_sample_destroy_1_svc();
00222 #define TSP_EXEC_FEATURE 109
00223 extern  void * tsp_exec_feature_1();
00224 extern  void * tsp_exec_feature_1_svc();
00225 extern int tsp_rpc_1_freeresult ();
00226 #endif /* K&R C */
00227 
00228 /* the xdr functions */
00229 
00230 #if defined(__STDC__) || defined(__cplusplus)
00231 extern  bool_t xdr_TSP_status_t (XDR *, TSP_status_t*);
00232 extern  bool_t xdr_TSP_answer_open_t (XDR *, TSP_answer_open_t*);
00233 extern  bool_t xdr_TSP_argv_item_t (XDR *, TSP_argv_item_t*);
00234 extern  bool_t xdr_TSP_argv_t (XDR *, TSP_argv_t*);
00235 extern  bool_t xdr_TSP_request_open_t (XDR *, TSP_request_open_t*);
00236 extern  bool_t xdr_TSP_request_close_t (XDR *, TSP_request_close_t*);
00237 extern  bool_t xdr_TSP_request_information_t (XDR *, TSP_request_information_t*);
00238 extern  bool_t xdr_TSP_request_feature_t (XDR *, TSP_request_feature_t*);
00239 extern  bool_t xdr_TSP_answer_feature_t (XDR *, TSP_answer_feature_t*);
00240 extern  bool_t xdr_TSP_exec_feature_t (XDR *, TSP_exec_feature_t*);
00241 extern  bool_t xdr_TSP_sample_symbol_info_t (XDR *, TSP_sample_symbol_info_t*);
00242 extern  bool_t xdr_TSP_sample_symbol_info_list_t (XDR *, TSP_sample_symbol_info_list_t*);
00243 extern  bool_t xdr_TSP_request_sample_t (XDR *, TSP_request_sample_t*);
00244 extern  bool_t xdr_TSP_answer_sample_t (XDR *, TSP_answer_sample_t*);
00245 extern  bool_t xdr_TSP_request_sample_init_t (XDR *, TSP_request_sample_init_t*);
00246 extern  bool_t xdr_TSP_answer_sample_init_t (XDR *, TSP_answer_sample_init_t*);
00247 extern  bool_t xdr_TSP_asynchronous_sample_symbol_t (XDR *, TSP_asynchronous_sample_symbol_t*);
00248 extern  bool_t xdr_TSP_request_sample_destroy_t (XDR *, TSP_request_sample_destroy_t*);
00249 extern  bool_t xdr_TSP_answer_sample_destroy_t (XDR *, TSP_answer_sample_destroy_t*);
00250 extern  bool_t xdr_TSP_provider_info_t (XDR *, TSP_provider_info_t*);
00251 
00252 #else /* K&R C */
00253 extern bool_t xdr_TSP_status_t ();
00254 extern bool_t xdr_TSP_answer_open_t ();
00255 extern bool_t xdr_TSP_argv_item_t ();
00256 extern bool_t xdr_TSP_argv_t ();
00257 extern bool_t xdr_TSP_request_open_t ();
00258 extern bool_t xdr_TSP_request_close_t ();
00259 extern bool_t xdr_TSP_request_information_t ();
00260 extern bool_t xdr_TSP_request_feature_t ();
00261 extern bool_t xdr_TSP_answer_feature_t ();
00262 extern bool_t xdr_TSP_exec_feature_t ();
00263 extern bool_t xdr_TSP_sample_symbol_info_t ();
00264 extern bool_t xdr_TSP_sample_symbol_info_list_t ();
00265 extern bool_t xdr_TSP_request_sample_t ();
00266 extern bool_t xdr_TSP_answer_sample_t ();
00267 extern bool_t xdr_TSP_request_sample_init_t ();
00268 extern bool_t xdr_TSP_answer_sample_init_t ();
00269 extern bool_t xdr_TSP_asynchronous_sample_symbol_t ();
00270 extern bool_t xdr_TSP_request_sample_destroy_t ();
00271 extern bool_t xdr_TSP_answer_sample_destroy_t ();
00272 extern bool_t xdr_TSP_provider_info_t ();
00273 
00274 #endif /* K&R C */
00275 
00276 #ifdef __cplusplus
00277 }
00278 #endif
00279 
00280 #endif /* !_TSP_RPC_H_RPCGEN */
Framework Home Page.

Beware !! TSP wave is coming...