mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
Added NRF
This commit is contained in:
parent
46f20cc979
commit
d0673e3066
397 changed files with 85455 additions and 209 deletions
|
|
@ -0,0 +1,23 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../include/keyValuePair.h"
|
||||
|
||||
OpenAPI_map_t *OpenAPI_map_create(char *key, void *value)
|
||||
{
|
||||
OpenAPI_map_t *OpenAPI_map = ogs_malloc(sizeof(OpenAPI_map_t));
|
||||
OpenAPI_map->key = key;
|
||||
OpenAPI_map->value = value;
|
||||
return OpenAPI_map;
|
||||
}
|
||||
|
||||
OpenAPI_map_t *OpenAPI_map_create_allocate(char *key, double value)
|
||||
{
|
||||
double* boolpointer = ogs_malloc(sizeof(value));
|
||||
memcpy(boolpointer, &value, sizeof(value));
|
||||
return OpenAPI_map_create(key, boolpointer);
|
||||
}
|
||||
|
||||
void OpenAPI_map_free(OpenAPI_map_t *OpenAPI_map)
|
||||
{
|
||||
ogs_free(OpenAPI_map);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue