Files
c/kubernetes/model/object.c
Hui Yu 8ba394045d commit
1. The kubernetes-client/gen setting for c generator

    2. The source code generated by OpenAPI c generator
2020-03-18 17:24:33 +08:00

32 lines
518 B
C

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "object.h"
object_t *object_create() {
object_t *object = malloc(sizeof(object_t));
return object;
}
void object_free(object_t *object) {
free (object);
}
cJSON *object_convertToJSON(object_t *object) {
cJSON *item = cJSON_CreateObject();
return item;
fail:
cJSON_Delete(item);
return NULL;
}
object_t *object_parseFromJSON(char *jsonString){
object_t *object = NULL;
return object;
end:
return NULL;
}