Go to the documentation of this file.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
00026
00027
00028
00029
00030
00031
00032
00039 #ifndef IRES_COMMON_
00040 #define IRES_COMMON_
00041
00044
00045
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif
00049
00050 #include "ialg.h"
00051
00052
00057 typedef enum IRES_Status {
00058 IRES_OK = 0,
00059 IRES_EALG = 1,
00060 IRES_EEXISTS = 2,
00061 IRES_EFAIL = 3,
00062 IRES_EINIT = 4,
00063 IRES_ENOINIT = 5,
00064 IRES_ENOMEM = 6,
00065 IRES_ENORESOURCE = 7,
00066 IRES_ENOTFOUND = 8
00067 } IRES_Status;
00068
00073 typedef struct IRES_ProtocolRevision {
00074 unsigned int Major;
00075 unsigned int Source;
00076 unsigned int Radius;
00077
00078
00079 } IRES_ProtocolRevision;
00080
00081
00085 typedef enum IRES_RequestMode {
00086 IRES_SCRATCH,
00090 IRES_PERSISTENT,
00094 IRES_LATEACQUIRE
00101 } IRES_RequestMode;
00102
00103
00110 typedef struct IRES_ProtocolArgs {
00111
00112 Int32 size;
00113 IRES_RequestMode mode;
00117 } IRES_ProtocolArgs;
00118
00122 typedef struct IRES_ResourceDescriptor {
00123
00127 String resourceName;
00128
00136 struct IRES_ProtocolArgs *protocolArgs;
00137
00147 IRES_ProtocolRevision *revision;
00148
00155 struct IRES_Obj * handle;
00156
00157 } IRES_ResourceDescriptor;
00158
00168 typedef struct IRES_Properties {
00169 Int32 size;
00170 } IRES_Properties;
00171
00176 typedef struct IRES_Obj {
00177
00181 Int32 persistent;
00182
00188 Void (*getStaticProperties) (struct IRES_Obj * resourceHandle,
00189 IRES_Properties * resourceProperties);
00190
00191 } IRES_Obj;
00192
00196 typedef struct IRES_Obj *IRES_Handle;
00197
00198
00199
00200 #ifdef __cplusplus
00201 }
00202 #endif
00203
00206 #endif
00207
00208
00209
00210