39 lines
885 B
C
39 lines
885 B
C
/*
|
|
* v1_group_subject.h
|
|
*
|
|
* GroupSubject holds detailed information for group-kind subject.
|
|
*/
|
|
|
|
#ifndef _v1_group_subject_H_
|
|
#define _v1_group_subject_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_group_subject_t v1_group_subject_t;
|
|
|
|
|
|
|
|
|
|
typedef struct v1_group_subject_t {
|
|
char *name; // string
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1_group_subject_t;
|
|
|
|
__attribute__((deprecated)) v1_group_subject_t *v1_group_subject_create(
|
|
char *name
|
|
);
|
|
|
|
void v1_group_subject_free(v1_group_subject_t *v1_group_subject);
|
|
|
|
v1_group_subject_t *v1_group_subject_parseFromJSON(cJSON *v1_group_subjectJSON);
|
|
|
|
cJSON *v1_group_subject_convertToJSON(v1_group_subject_t *v1_group_subject);
|
|
|
|
#endif /* _v1_group_subject_H_ */
|
|
|