Created
March 17, 2020 11:01
-
-
Save Angeall/deecfed04bd86ba81b77c1fd6f1f6514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* dummy_object.h | |
* | |
* | |
*/ | |
#ifndef _dummy_object_H_ | |
#define _dummy_object_H_ | |
#include <string.h> | |
#include "../external/cJSON.h" | |
#include "../include/list.h" | |
#include "../include/keyValuePair.h" | |
#include "dummy_enum.h" | |
// Enum for dummy_object | |
typedef enum { dummy_api_dummy_object__NULL = 0, dummy_api_dummy_object__Test1, dummy_api_dummy_object__Test2, dummy_api_dummy_object__Test3 } dummy_api_dummy_object__e; | |
char* dummy_object_dummy_ToString(dummy_api_dummy_object__e dummy); | |
dummy_api_dummy_object__e dummy_object_dummy_FromString(char* dummy); | |
typedef struct dummy_object_t { | |
char *message; // string | |
} dummy_object_t; | |
dummy_object_t *dummy_object_create( | |
char *message, | |
); | |
void dummy_object_free(dummy_object_t *dummy_object); | |
dummy_object_t *dummy_object_parseFromJSON(cJSON *dummy_objectJSON); | |
cJSON *dummy_object_convertToJSON(dummy_object_t *dummy_object); | |
#endif /* _dummy_object_H_ */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dummy_api_dummy_object__e
elementdummy_api_dummy_object__e
argument