Skip to content

Commit

Permalink
Renamed EXPORT_SPEC to UPNP_EXPORT_SPEC
Browse files Browse the repository at this point in the history
  • Loading branch information
Vollstrecker authored and mrjimenez committed Feb 9, 2022
1 parent 9b2e435 commit 2f99af2
Show file tree
Hide file tree
Showing 23 changed files with 629 additions and 629 deletions.
182 changes: 91 additions & 91 deletions ixml/inc/ixml.h

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions upnp/generator/TestClass.h
Expand Up @@ -13,7 +13,7 @@
*/
#include <stdlib.h> /* for size_t */

#include "UpnpGlobal.h" /* for EXPORT_SPEC */
#include "UpnpGlobal.h" /* for UPNP_EXPORT_SPEC */

#include "TheStruct.h"
#include "UpnpActionComplete.h"
Expand All @@ -31,74 +31,74 @@ extern "C" {
typedef struct s_TestClass TestClass;

/*! Constructor */
EXPORT_SPEC TestClass *TestClass_new();
UPNP_EXPORT_SPEC TestClass *TestClass_new();
/*! Destructor */
EXPORT_SPEC void TestClass_delete(TestClass *p);
UPNP_EXPORT_SPEC void TestClass_delete(TestClass *p);
/*! Copy Constructor */
EXPORT_SPEC TestClass *TestClass_dup(const TestClass *p);
UPNP_EXPORT_SPEC TestClass *TestClass_dup(const TestClass *p);
/*! Assignment operator */
EXPORT_SPEC int TestClass_assign(TestClass *p, const TestClass *q);
UPNP_EXPORT_SPEC int TestClass_assign(TestClass *p, const TestClass *q);

/*! TestClass_get_TheList */
EXPORT_SPEC const UpnpListHead *TestClass_get_TheList(const TestClass *p);
UPNP_EXPORT_SPEC const UpnpListHead *TestClass_get_TheList(const TestClass *p);
/*! TestClass_set_TheList */
EXPORT_SPEC int TestClass_set_TheList(TestClass *p, const UpnpListHead *q);
UPNP_EXPORT_SPEC int TestClass_set_TheList(TestClass *p, const UpnpListHead *q);
/*! TestClass_add_to_list_TheList */
EXPORT_SPEC void TestClass_add_to_list_TheList(
UPNP_EXPORT_SPEC void TestClass_add_to_list_TheList(
TestClass *p, UpnpListHead *head);

/*! TestClass_get_TheInteger */
EXPORT_SPEC int TestClass_get_TheInteger(const TestClass *p);
UPNP_EXPORT_SPEC int TestClass_get_TheInteger(const TestClass *p);
/*! TestClass_set_TheInteger */
EXPORT_SPEC int TestClass_set_TheInteger(TestClass *p, int n);
UPNP_EXPORT_SPEC int TestClass_set_TheInteger(TestClass *p, int n);

/*! TestClass_get_TheUnsignedLong */
EXPORT_SPEC unsigned long TestClass_get_TheUnsignedLong(const TestClass *p);
UPNP_EXPORT_SPEC unsigned long TestClass_get_TheUnsignedLong(const TestClass *p);
/*! TestClass_set_TheUnsignedLong */
EXPORT_SPEC int TestClass_set_TheUnsignedLong(TestClass *p, unsigned long n);
UPNP_EXPORT_SPEC int TestClass_set_TheUnsignedLong(TestClass *p, unsigned long n);

/*! TestClass_get_TheCharPointer */
EXPORT_SPEC char *TestClass_get_TheCharPointer(const TestClass *p);
UPNP_EXPORT_SPEC char *TestClass_get_TheCharPointer(const TestClass *p);
/*! TestClass_set_TheCharPointer */
EXPORT_SPEC int TestClass_set_TheCharPointer(TestClass *p, char *n);
UPNP_EXPORT_SPEC int TestClass_set_TheCharPointer(TestClass *p, char *n);

/*! TestClass_get_TheBuffer */
EXPORT_SPEC const struct TheStruct *TestClass_get_TheBuffer(const TestClass *p);
UPNP_EXPORT_SPEC const struct TheStruct *TestClass_get_TheBuffer(const TestClass *p);
/*! TestClass_get_TheBuffer */
EXPORT_SPEC int TestClass_set_TheBuffer(
UPNP_EXPORT_SPEC int TestClass_set_TheBuffer(
TestClass *p, const struct TheStruct *buf);
/*! TestClass_get_TheBuffer */
EXPORT_SPEC void TestClass_clear_TheBuffer(TestClass *p);
UPNP_EXPORT_SPEC void TestClass_clear_TheBuffer(TestClass *p);

/*! TestClass_get_TheActionComplete */
EXPORT_SPEC const UpnpActionComplete *TestClass_get_TheActionComplete(
UPNP_EXPORT_SPEC const UpnpActionComplete *TestClass_get_TheActionComplete(
const TestClass *p);
/*! TestClass_set_TheActionComplete */
EXPORT_SPEC int TestClass_set_TheActionComplete(
UPNP_EXPORT_SPEC int TestClass_set_TheActionComplete(
TestClass *p, const UpnpActionComplete *n);

/*! TestClass_get_TheString */
EXPORT_SPEC const UpnpString *TestClass_get_TheString(const TestClass *p);
UPNP_EXPORT_SPEC const UpnpString *TestClass_get_TheString(const TestClass *p);
/*! TestClass_set_TheString */
EXPORT_SPEC int TestClass_set_TheString(TestClass *p, const UpnpString *s);
UPNP_EXPORT_SPEC int TestClass_set_TheString(TestClass *p, const UpnpString *s);
/*! TestClass_get_TheString_Length */
EXPORT_SPEC size_t TestClass_get_TheString_Length(const TestClass *p);
UPNP_EXPORT_SPEC size_t TestClass_get_TheString_Length(const TestClass *p);
/*! TestClass_get_TheString_cstr */
EXPORT_SPEC const char *TestClass_get_TheString_cstr(const TestClass *p);
UPNP_EXPORT_SPEC const char *TestClass_get_TheString_cstr(const TestClass *p);
/*! TestClass_strcpy_TheString */
EXPORT_SPEC int TestClass_strcpy_TheString(TestClass *p, const char *s);
UPNP_EXPORT_SPEC int TestClass_strcpy_TheString(TestClass *p, const char *s);
/*! TestClass_strncpy_TheString */
EXPORT_SPEC int TestClass_strncpy_TheString(
UPNP_EXPORT_SPEC int TestClass_strncpy_TheString(
TestClass *p, const char *s, size_t n);
/*! TestClass_clear_TheString */
EXPORT_SPEC void TestClass_clear_TheString(TestClass *p);
UPNP_EXPORT_SPEC void TestClass_clear_TheString(TestClass *p);

/*! TestClass_get_TheDomString */
EXPORT_SPEC const DOMString TestClass_get_TheDomString(const TestClass *p);
UPNP_EXPORT_SPEC const DOMString TestClass_get_TheDomString(const TestClass *p);
/*! TestClass_set_TheDomString */
EXPORT_SPEC int TestClass_set_TheDomString(TestClass *p, const DOMString s);
UPNP_EXPORT_SPEC int TestClass_set_TheDomString(TestClass *p, const DOMString s);
/*! TestClass_get_TheDomString_cstr */
EXPORT_SPEC const char *TestClass_get_TheDomString_cstr(const TestClass *p);
UPNP_EXPORT_SPEC const char *TestClass_get_TheDomString_cstr(const TestClass *p);

#ifdef __cplusplus
}
Expand Down
50 changes: 25 additions & 25 deletions upnp/generator/generator.c
Expand Up @@ -174,9 +174,9 @@ static int write_prototype(FILE *fp, const char *class_name, struct s_Member *m)
/* clang-format off */
fprintf(fp,
"/*! %s_get_%s */\n"
"EXPORT_SPEC const %s *%s_get_%s(const %s *p);\n"
"UPNP_EXPORT_SPEC const %s *%s_get_%s(const %s *p);\n"
"/*! %s_set_%s */\n"
"EXPORT_SPEC int %s_set_%s(%s *p, const %s *n);\n"
"UPNP_EXPORT_SPEC int %s_set_%s(%s *p, const %s *n);\n"
"\n",
class_name, m->name,
m->type_name, class_name, m->name, class_name,
Expand All @@ -189,9 +189,9 @@ static int write_prototype(FILE *fp, const char *class_name, struct s_Member *m)
/* clang-format off */
fprintf(fp,
"/*! %s_get_%s */\n"
"EXPORT_SPEC %s %s_get_%s(const %s *p);\n"
"UPNP_EXPORT_SPEC %s %s_get_%s(const %s *p);\n"
"/*! %s_set_%s */\n"
"EXPORT_SPEC int %s_set_%s(%s *p, %s n);\n"
"UPNP_EXPORT_SPEC int %s_set_%s(%s *p, %s n);\n"
"\n",
class_name, m->name,
m->type_name, class_name, m->name, class_name,
Expand All @@ -204,11 +204,11 @@ static int write_prototype(FILE *fp, const char *class_name, struct s_Member *m)
/* clang-format off */
fprintf(fp,
"/*! %s_get_%s */\n"
"EXPORT_SPEC const %s *%s_get_%s(const %s *p);\n"
"UPNP_EXPORT_SPEC const %s *%s_get_%s(const %s *p);\n"
"/*! %s_get_%s */\n"
"EXPORT_SPEC int %s_set_%s(%s *p, const %s *buf); \n"
"UPNP_EXPORT_SPEC int %s_set_%s(%s *p, const %s *buf); \n"
"/*! %s_get_%s */\n"
"EXPORT_SPEC void %s_clear_%s(%s *p); \n"
"UPNP_EXPORT_SPEC void %s_clear_%s(%s *p); \n"
"\n",
class_name, m->name,
m->type_name, class_name, m->name, class_name,
Expand All @@ -223,11 +223,11 @@ static int write_prototype(FILE *fp, const char *class_name, struct s_Member *m)
/* clang-format off */
fprintf(fp,
"/*! %s_get_%s */\n"
"EXPORT_SPEC const UpnpListHead *%s_get_%s(const %s *p);\n"
"UPNP_EXPORT_SPEC const UpnpListHead *%s_get_%s(const %s *p);\n"
"/*! %s_set_%s */\n"
"EXPORT_SPEC int %s_set_%s(%s *p, const UpnpListHead *q);\n"
"UPNP_EXPORT_SPEC int %s_set_%s(%s *p, const UpnpListHead *q);\n"
"/*! %s_add_to_list_%s */\n"
"EXPORT_SPEC void %s_add_to_list_%s(%s *p, UpnpListHead *head);\n"
"UPNP_EXPORT_SPEC void %s_add_to_list_%s(%s *p, UpnpListHead *head);\n"
"\n",
class_name, m->name,
class_name, m->name, class_name,
Expand All @@ -242,19 +242,19 @@ static int write_prototype(FILE *fp, const char *class_name, struct s_Member *m)
/* clang-format off */
fprintf(fp,
"/*! %s_get_%s */\n"
"EXPORT_SPEC const UpnpString *%s_get_%s(const %s *p);\n"
"UPNP_EXPORT_SPEC const UpnpString *%s_get_%s(const %s *p);\n"
"/*! %s_set_%s */\n"
"EXPORT_SPEC int %s_set_%s(%s *p, const UpnpString *s);\n"
"UPNP_EXPORT_SPEC int %s_set_%s(%s *p, const UpnpString *s);\n"
"/*! %s_get_%s_Length */\n"
"EXPORT_SPEC size_t %s_get_%s_Length(const %s *p);\n"
"UPNP_EXPORT_SPEC size_t %s_get_%s_Length(const %s *p);\n"
"/*! %s_get_%s_cstr */\n"
"EXPORT_SPEC const char *%s_get_%s_cstr(const %s *p);\n"
"UPNP_EXPORT_SPEC const char *%s_get_%s_cstr(const %s *p);\n"
"/*! %s_strcpy_%s */\n"
"EXPORT_SPEC int %s_strcpy_%s(%s *p, const char *s);\n"
"UPNP_EXPORT_SPEC int %s_strcpy_%s(%s *p, const char *s);\n"
"/*! %s_strncpy_%s */\n"
"EXPORT_SPEC int %s_strncpy_%s(%s *p, const char *s, size_t n); \n"
"UPNP_EXPORT_SPEC int %s_strncpy_%s(%s *p, const char *s, size_t n); \n"
"/*! %s_clear_%s */\n"
"EXPORT_SPEC void %s_clear_%s(%s *p); \n"
"UPNP_EXPORT_SPEC void %s_clear_%s(%s *p); \n"
"\n",
class_name, m->name,
class_name, m->name, class_name,
Expand All @@ -277,11 +277,11 @@ static int write_prototype(FILE *fp, const char *class_name, struct s_Member *m)
/* clang-format off */
fprintf(fp,
"/*! %s_get_%s */\n"
"EXPORT_SPEC const DOMString %s_get_%s(const %s *p); \n"
"UPNP_EXPORT_SPEC const DOMString %s_get_%s(const %s *p); \n"
"/*! %s_set_%s */\n"
"EXPORT_SPEC int %s_set_%s(%s *p, const DOMString s); \n"
"UPNP_EXPORT_SPEC int %s_set_%s(%s *p, const DOMString s); \n"
"/*! %s_get_%s_cstr */\n"
"EXPORT_SPEC const char *%s_get_%s_cstr(const %s *p); \n"
"UPNP_EXPORT_SPEC const char *%s_get_%s_cstr(const %s *p); \n"
"\n",
class_name, m->name,
class_name, m->name, class_name,
Expand Down Expand Up @@ -404,7 +404,7 @@ static int write_header(FILE *fp, struct s_Class *c)
" */\n"
"#include <stdlib.h> /* for size_t */\n"
"\n"
"#include \"UpnpGlobal.h\" /* for EXPORT_SPEC */\n"
"#include \"UpnpGlobal.h\" /* for UPNP_EXPORT_SPEC */\n"
"\n",
class_name_upr,
class_name_upr,
Expand Down Expand Up @@ -436,13 +436,13 @@ static int write_header(FILE *fp, struct s_Class *c)
"typedef struct s_%s %s;\n"
"\n"
"/*! Constructor */\n"
"EXPORT_SPEC %s *%s_new();\n"
"UPNP_EXPORT_SPEC %s *%s_new();\n"
"/*! Destructor */\n"
"EXPORT_SPEC void %s_delete(%s *p);\n"
"UPNP_EXPORT_SPEC void %s_delete(%s *p);\n"
"/*! Copy Constructor */\n"
"EXPORT_SPEC %s *%s_dup(const %s *p);\n"
"UPNP_EXPORT_SPEC %s *%s_dup(const %s *p);\n"
"/*! Assignment operator */\n"
"EXPORT_SPEC int %s_assign(%s *p, const %s *q);\n"
"UPNP_EXPORT_SPEC int %s_assign(%s *p, const %s *q);\n"
"\n",
c->name,
c->name,
Expand Down
36 changes: 18 additions & 18 deletions upnp/inc/UpnpActionComplete.h
Expand Up @@ -13,7 +13,7 @@
*/
#include <stdlib.h> /* for size_t */

#include "UpnpGlobal.h" /* for EXPORT_SPEC */
#include "UpnpGlobal.h" /* for UPNP_EXPORT_SPEC */

#include "UpnpString.h"
#include "ixml.h"
Expand All @@ -28,54 +28,54 @@ extern "C" {
typedef struct s_UpnpActionComplete UpnpActionComplete;

/*! Constructor */
EXPORT_SPEC UpnpActionComplete *UpnpActionComplete_new();
UPNP_EXPORT_SPEC UpnpActionComplete *UpnpActionComplete_new();
/*! Destructor */
EXPORT_SPEC void UpnpActionComplete_delete(UpnpActionComplete *p);
UPNP_EXPORT_SPEC void UpnpActionComplete_delete(UpnpActionComplete *p);
/*! Copy Constructor */
EXPORT_SPEC UpnpActionComplete *UpnpActionComplete_dup(
UPNP_EXPORT_SPEC UpnpActionComplete *UpnpActionComplete_dup(
const UpnpActionComplete *p);
/*! Assignment operator */
EXPORT_SPEC int UpnpActionComplete_assign(
UPNP_EXPORT_SPEC int UpnpActionComplete_assign(
UpnpActionComplete *p, const UpnpActionComplete *q);

/*! UpnpActionComplete_get_ErrCode */
EXPORT_SPEC int UpnpActionComplete_get_ErrCode(const UpnpActionComplete *p);
UPNP_EXPORT_SPEC int UpnpActionComplete_get_ErrCode(const UpnpActionComplete *p);
/*! UpnpActionComplete_set_ErrCode */
EXPORT_SPEC int UpnpActionComplete_set_ErrCode(UpnpActionComplete *p, int n);
UPNP_EXPORT_SPEC int UpnpActionComplete_set_ErrCode(UpnpActionComplete *p, int n);

/*! UpnpActionComplete_get_CtrlUrl */
EXPORT_SPEC const UpnpString *UpnpActionComplete_get_CtrlUrl(
UPNP_EXPORT_SPEC const UpnpString *UpnpActionComplete_get_CtrlUrl(
const UpnpActionComplete *p);
/*! UpnpActionComplete_set_CtrlUrl */
EXPORT_SPEC int UpnpActionComplete_set_CtrlUrl(
UPNP_EXPORT_SPEC int UpnpActionComplete_set_CtrlUrl(
UpnpActionComplete *p, const UpnpString *s);
/*! UpnpActionComplete_get_CtrlUrl_Length */
EXPORT_SPEC size_t UpnpActionComplete_get_CtrlUrl_Length(
UPNP_EXPORT_SPEC size_t UpnpActionComplete_get_CtrlUrl_Length(
const UpnpActionComplete *p);
/*! UpnpActionComplete_get_CtrlUrl_cstr */
EXPORT_SPEC const char *UpnpActionComplete_get_CtrlUrl_cstr(
UPNP_EXPORT_SPEC const char *UpnpActionComplete_get_CtrlUrl_cstr(
const UpnpActionComplete *p);
/*! UpnpActionComplete_strcpy_CtrlUrl */
EXPORT_SPEC int UpnpActionComplete_strcpy_CtrlUrl(
UPNP_EXPORT_SPEC int UpnpActionComplete_strcpy_CtrlUrl(
UpnpActionComplete *p, const char *s);
/*! UpnpActionComplete_strncpy_CtrlUrl */
EXPORT_SPEC int UpnpActionComplete_strncpy_CtrlUrl(
UPNP_EXPORT_SPEC int UpnpActionComplete_strncpy_CtrlUrl(
UpnpActionComplete *p, const char *s, size_t n);
/*! UpnpActionComplete_clear_CtrlUrl */
EXPORT_SPEC void UpnpActionComplete_clear_CtrlUrl(UpnpActionComplete *p);
UPNP_EXPORT_SPEC void UpnpActionComplete_clear_CtrlUrl(UpnpActionComplete *p);

/*! UpnpActionComplete_get_ActionRequest */
EXPORT_SPEC IXML_Document *UpnpActionComplete_get_ActionRequest(
UPNP_EXPORT_SPEC IXML_Document *UpnpActionComplete_get_ActionRequest(
const UpnpActionComplete *p);
/*! UpnpActionComplete_set_ActionRequest */
EXPORT_SPEC int UpnpActionComplete_set_ActionRequest(
UPNP_EXPORT_SPEC int UpnpActionComplete_set_ActionRequest(
UpnpActionComplete *p, IXML_Document *n);

/*! UpnpActionComplete_get_ActionResult */
EXPORT_SPEC IXML_Document *UpnpActionComplete_get_ActionResult(
UPNP_EXPORT_SPEC IXML_Document *UpnpActionComplete_get_ActionResult(
const UpnpActionComplete *p);
/*! UpnpActionComplete_set_ActionResult */
EXPORT_SPEC int UpnpActionComplete_set_ActionResult(
UPNP_EXPORT_SPEC int UpnpActionComplete_set_ActionResult(
UpnpActionComplete *p, IXML_Document *n);

#ifdef __cplusplus
Expand Down

0 comments on commit 2f99af2

Please sign in to comment.