For DIET to match the client problem with a service, servers and clients must “speak the same language”, i.e., they must use the same problem description. A unified way to describe problems is to use a name and define its profile with the type diet_profile_t:
typedef struct { char* pb_name; int last_in, last_inout, last_out; diet_arg_t *parameters; } diet_profile_t;
The field parameters consists of a diet_arg_t array of size . Arguments can be:
The fields last_in, last_inout and last_out of the diet_profile_t structure respectively point at the indexes in the parameters array of the last IN, INOUT and OUT arguments.
Functions to create and destroy such profiles are defined with the prototypes
below:
diet_profile_t *diet_profile_alloc(char* pb_name, int last_in, int last_inout, int last_out); int diet_profile_free(diet_profile_t *profile);
The values of last_in, last_inout and last_out are respectively:
The DIET Team - Mer 29 nov 2017 15:13:36 EST