Skip to content

Instantly share code, notes, and snippets.

@Angeall
Created March 17, 2020 11:01
Show Gist options
  • Save Angeall/deecfed04bd86ba81b77c1fd6f1f6514 to your computer and use it in GitHub Desktop.
Save Angeall/deecfed04bd86ba81b77c1fd6f1f6514 to your computer and use it in GitHub Desktop.
/*
* 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_ */
@Angeall
Copy link
Author

Angeall commented Mar 17, 2020

  • Line 28 should contain a dummy_api_dummy_object__e element
  • Line between 32 and 33 should also contain a dummy_api_dummy_object__e argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment