mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Add AUSF, UDM, and UDR
This commit is contained in:
parent
0c0241d5e5
commit
72370ff0b2
1151 changed files with 140173 additions and 24799 deletions
49
lib/sbi/openapi/model/usage_mon_data.h
Normal file
49
lib/sbi/openapi/model/usage_mon_data.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* usage_mon_data.h
|
||||
*
|
||||
* Contains remain allowed usage data for a subscriber.
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_usage_mon_data_H_
|
||||
#define _OpenAPI_usage_mon_data_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "time_period.h"
|
||||
#include "usage_mon_data_scope.h"
|
||||
#include "usage_mon_level.h"
|
||||
#include "usage_threshold.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct OpenAPI_usage_mon_data_s OpenAPI_usage_mon_data_t;
|
||||
typedef struct OpenAPI_usage_mon_data_s {
|
||||
char *limit_id;
|
||||
OpenAPI_list_t* scopes;
|
||||
struct OpenAPI_usage_mon_level_s *um_level;
|
||||
struct OpenAPI_usage_threshold_s *allowed_usage;
|
||||
struct OpenAPI_time_period_s *reset_time;
|
||||
} OpenAPI_usage_mon_data_t;
|
||||
|
||||
OpenAPI_usage_mon_data_t *OpenAPI_usage_mon_data_create(
|
||||
char *limit_id,
|
||||
OpenAPI_list_t* scopes,
|
||||
OpenAPI_usage_mon_level_t *um_level,
|
||||
OpenAPI_usage_threshold_t *allowed_usage,
|
||||
OpenAPI_time_period_t *reset_time
|
||||
);
|
||||
void OpenAPI_usage_mon_data_free(OpenAPI_usage_mon_data_t *usage_mon_data);
|
||||
OpenAPI_usage_mon_data_t *OpenAPI_usage_mon_data_parseFromJSON(cJSON *usage_mon_dataJSON);
|
||||
cJSON *OpenAPI_usage_mon_data_convertToJSON(OpenAPI_usage_mon_data_t *usage_mon_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OpenAPI_usage_mon_data_H_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue