Added NRF

This commit is contained in:
Sukchan Lee 2020-05-18 17:00:37 -04:00
parent 46f20cc979
commit d0673e3066
397 changed files with 85455 additions and 209 deletions

View file

@ -0,0 +1,46 @@
/*
* notification_data.h
*
*
*/
#ifndef _OpenAPI_notification_data_H_
#define _OpenAPI_notification_data_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#include "change_item.h"
#include "nf_profile.h"
#include "notification_event_type.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_notification_data_s OpenAPI_notification_data_t;
typedef struct OpenAPI_notification_data_s {
OpenAPI_notification_event_type_e event;
char *nf_instance_uri;
struct OpenAPI_nf_profile_s *nf_profile;
OpenAPI_list_t *profile_changes;
} OpenAPI_notification_data_t;
OpenAPI_notification_data_t *OpenAPI_notification_data_create(
OpenAPI_notification_event_type_e event,
char *nf_instance_uri,
OpenAPI_nf_profile_t *nf_profile,
OpenAPI_list_t *profile_changes
);
void OpenAPI_notification_data_free(OpenAPI_notification_data_t *notification_data);
OpenAPI_notification_data_t *OpenAPI_notification_data_parseFromJSON(cJSON *notification_dataJSON);
cJSON *OpenAPI_notification_data_convertToJSON(OpenAPI_notification_data_t *notification_data);
#ifdef __cplusplus
}
#endif
#endif /* _OpenAPI_notification_data_H_ */