/* * patch_item.h * * */ #ifndef _OpenAPI_patch_item_H_ #define _OpenAPI_patch_item_H_ #include #include "../external/cJSON.h" #include "../include/list.h" #include "../include/keyValuePair.h" #include "../include/binary.h" #include "patch_operation.h" #ifdef __cplusplus extern "C" { #endif typedef struct OpenAPI_patch_item_s OpenAPI_patch_item_t; typedef struct OpenAPI_patch_item_s { OpenAPI_patch_operation_e op; char *path; char *from; char *value; } OpenAPI_patch_item_t; OpenAPI_patch_item_t *OpenAPI_patch_item_create( OpenAPI_patch_operation_e op, char *path, char *from, char *value ); void OpenAPI_patch_item_free(OpenAPI_patch_item_t *patch_item); OpenAPI_patch_item_t *OpenAPI_patch_item_parseFromJSON(cJSON *patch_itemJSON); cJSON *OpenAPI_patch_item_convertToJSON(OpenAPI_patch_item_t *patch_item); #ifdef __cplusplus } #endif #endif /* _OpenAPI_patch_item_H_ */