mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
OpenAPI: Generate patch_item.[ch] from OpenAPI specifications
This commit is contained in:
parent
36734cac7c
commit
b85ad61e2b
14 changed files with 204 additions and 173 deletions
46
lib/sbi/openapi/model/patch_item.h
Normal file
46
lib/sbi/openapi/model/patch_item.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* patch_item.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_patch_item_H_
|
||||
#define _OpenAPI_patch_item_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "any_type.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;
|
||||
OpenAPI_any_type_t *value;
|
||||
} OpenAPI_patch_item_t;
|
||||
|
||||
OpenAPI_patch_item_t *OpenAPI_patch_item_create(
|
||||
OpenAPI_patch_operation_e op,
|
||||
char *path,
|
||||
char *from,
|
||||
OpenAPI_any_type_t *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);
|
||||
OpenAPI_patch_item_t *OpenAPI_patch_item_copy(OpenAPI_patch_item_t *dst, OpenAPI_patch_item_t *src);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OpenAPI_patch_item_H_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue