forked from acouzens/open5gs
76 lines
2.3 KiB
C
76 lines
2.3 KiB
C
/*
|
|
* amf_event_subscription.h
|
|
*
|
|
* Represents an individual event subscription resource on AMF
|
|
*/
|
|
|
|
#ifndef _OpenAPI_amf_event_subscription_H_
|
|
#define _OpenAPI_amf_event_subscription_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "amf_event.h"
|
|
#include "amf_event_mode.h"
|
|
#include "nf_type.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_amf_event_subscription_s OpenAPI_amf_event_subscription_t;
|
|
typedef struct OpenAPI_amf_event_subscription_s {
|
|
OpenAPI_list_t *event_list;
|
|
char *event_notify_uri;
|
|
char *notify_correlation_id;
|
|
char *nf_id;
|
|
char *subs_change_notify_uri;
|
|
char *subs_change_notify_correlation_id;
|
|
char *supi;
|
|
char *group_id;
|
|
OpenAPI_list_t *exclude_supi_list;
|
|
OpenAPI_list_t *exclude_gpsi_list;
|
|
OpenAPI_list_t *include_supi_list;
|
|
OpenAPI_list_t *include_gpsi_list;
|
|
char *gpsi;
|
|
char *pei;
|
|
bool is_any_ue;
|
|
int any_ue;
|
|
struct OpenAPI_amf_event_mode_s *options;
|
|
OpenAPI_nf_type_e source_nf_type;
|
|
} OpenAPI_amf_event_subscription_t;
|
|
|
|
OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_create(
|
|
OpenAPI_list_t *event_list,
|
|
char *event_notify_uri,
|
|
char *notify_correlation_id,
|
|
char *nf_id,
|
|
char *subs_change_notify_uri,
|
|
char *subs_change_notify_correlation_id,
|
|
char *supi,
|
|
char *group_id,
|
|
OpenAPI_list_t *exclude_supi_list,
|
|
OpenAPI_list_t *exclude_gpsi_list,
|
|
OpenAPI_list_t *include_supi_list,
|
|
OpenAPI_list_t *include_gpsi_list,
|
|
char *gpsi,
|
|
char *pei,
|
|
bool is_any_ue,
|
|
int any_ue,
|
|
OpenAPI_amf_event_mode_t *options,
|
|
OpenAPI_nf_type_e source_nf_type
|
|
);
|
|
void OpenAPI_amf_event_subscription_free(OpenAPI_amf_event_subscription_t *amf_event_subscription);
|
|
OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(cJSON *amf_event_subscriptionJSON);
|
|
cJSON *OpenAPI_amf_event_subscription_convertToJSON(OpenAPI_amf_event_subscription_t *amf_event_subscription);
|
|
OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_copy(OpenAPI_amf_event_subscription_t *dst, OpenAPI_amf_event_subscription_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_amf_event_subscription_H_ */
|
|
|