mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Added NRF
This commit is contained in:
parent
46f20cc979
commit
d0673e3066
397 changed files with 85455 additions and 209 deletions
52
lib/sbi/openapi/model/problem_details.h
Normal file
52
lib/sbi/openapi/model/problem_details.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* problem_details.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_problem_details_H_
|
||||
#define _OpenAPI_problem_details_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "invalid_param.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct OpenAPI_problem_details_s OpenAPI_problem_details_t;
|
||||
typedef struct OpenAPI_problem_details_s {
|
||||
char *type;
|
||||
char *title;
|
||||
int status;
|
||||
char *detail;
|
||||
char *instance;
|
||||
char *cause;
|
||||
OpenAPI_list_t *invalid_params;
|
||||
char *supported_features;
|
||||
} OpenAPI_problem_details_t;
|
||||
|
||||
OpenAPI_problem_details_t *OpenAPI_problem_details_create(
|
||||
char *type,
|
||||
char *title,
|
||||
int status,
|
||||
char *detail,
|
||||
char *instance,
|
||||
char *cause,
|
||||
OpenAPI_list_t *invalid_params,
|
||||
char *supported_features
|
||||
);
|
||||
void OpenAPI_problem_details_free(OpenAPI_problem_details_t *problem_details);
|
||||
OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_detailsJSON);
|
||||
cJSON *OpenAPI_problem_details_convertToJSON(OpenAPI_problem_details_t *problem_details);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OpenAPI_problem_details_H_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue