/* ** (c) COPYRIGHT MIT 1996. ** Please first read the full copyright statement in the file COPYRIGH. */This module provides the interface to CSUser.c. Labels are parsed from strings (see CSParse.html). These labels may then be kept in a CSUser_t structure for inspection by the application or compared to the values in a CSLabel_t structure (see CSLL.html).
#ifndef CSUSER_H #define CSUSER_H
typedef enum { CSUserTC_USER = 1, CSUserTC_SERVICE, CSUserTC_RLIST, CSUserTC_RATING, CSUserTC_RANGE, CSUserTC_COUNT } CSUserTC_t;
typedef struct CSUserData_s CSUserData_t;
typedef StateRet_t UserTargetCallback_t(CSUser_t * pCSUser, CSParse_t * pCSParse, CSUserTC_t target, BOOL closed, void * pVoid);
typedef StateRet_t UserErrorHandler_t(CSUser_t * pCSUser, CSParse_t * pCSParse, const char * token, char demark, StateRet_t errorCode);
extern CSParse_t * CSParse_newUser(void); extern BOOL CSParse_deleteUser(CSParse_t *); extern CSUser_t * CSParse_getUser(CSParse_t * me); extern char * CSUser_name(CSUser_t * pCSUser); extern BOOL CSUser_checkPassword(CSUser_t * pCSUser, char * password); extern char * CSUser_bureau(CSUser_t * pCSUser); extern void CSUser_free(CSUser_t * me); extern Range_t * CSUser_getUserRatingRange(CSUser_t * pCSUser); extern char * CSUser_getRatingStr(CSUser_t * pCSUser);
typedef CSError_t CSUser_callback_t(CSUser_t *, State_Parms_t *, const char *, void * pVoid); typedef CSError_t CSUser_iterator_t(CSUser_t *, CSUser_callback_t *, State_Parms_t *, const char *, void * pVoid); extern CSUser_iterator_t CSUser_iterateServices; extern CSUser_iterator_t CSUser_iterateServiceRatings; extern CSError_t CSCheckLabel_checkLabelAndUser(CSLabel_t * pCSLabel, CSUser_t * pCSUser); extern CSError_t CSCheckLabel_parseAndValidateLabelStr(const char * label, CSUser_t * pCSUser);
extern char * CSUser_acceptLabels(CSUser_t * pCSUser, CSCompleteness_t completeness);
extern char * CSUser_getLabels(CSUser_t * pCSUser, char * url, CSOption_t option, CSCompleteness_t completeness);
extern char * CSUser_postLabels(CSUser_t * pCSUser, char * url, CSOption_t option, CSCompleteness_t completeness);
#endif /* CSUser_H */End of Declaration