38 lines
757 B
C
38 lines
757 B
C
/*
|
|
* v1_user_subject.h
|
|
*
|
|
* UserSubject holds detailed information for user-kind subject.
|
|
*/
|
|
|
|
#ifndef _v1_user_subject_H_
|
|
#define _v1_user_subject_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_user_subject_t v1_user_subject_t;
|
|
|
|
|
|
|
|
|
|
typedef struct v1_user_subject_t {
|
|
char *name; // string
|
|
|
|
} v1_user_subject_t;
|
|
|
|
v1_user_subject_t *v1_user_subject_create(
|
|
char *name
|
|
);
|
|
|
|
void v1_user_subject_free(v1_user_subject_t *v1_user_subject);
|
|
|
|
v1_user_subject_t *v1_user_subject_parseFromJSON(cJSON *v1_user_subjectJSON);
|
|
|
|
cJSON *v1_user_subject_convertToJSON(v1_user_subject_t *v1_user_subject);
|
|
|
|
#endif /* _v1_user_subject_H_ */
|
|
|