Skip to content

Commit

Permalink
PROBLEM: Can't build project
Browse files Browse the repository at this point in the history
SOLUTION: Fix it

Signed-off-by: Karol Hrdina <[email protected]>
  • Loading branch information
karolhrdina committed Feb 3, 2017
1 parent 7c85a2e commit 0cae132
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions include/zmsq_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ typedef struct _zmosq_server_t zmosq_server_t;
#define ZMOSQ_SERVER_T_DEFINED
typedef struct _zmosq_client_t zmosq_client_t;
#define ZMOSQ_CLIENT_T_DEFINED
typedef struct _zmosq_server_t zmosq_server_t;
#define ZMOSQ_SERVER_T_DEFINED
#endif // ZMSQ_BUILD_DRAFT_API


Expand Down
2 changes: 0 additions & 2 deletions src/Makemodule.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ include_HEADERS = \

if ENABLE_DRAFTS
include_HEADERS += \
include/zmosq_server.h \
include/zmosq_client.h \
include/zmosq_server.h

Expand All @@ -28,7 +27,6 @@ src_libzmsq_la_SOURCES = \

if ENABLE_DRAFTS
src_libzmsq_la_SOURCES += \
src/zmosq_server.c \
src/zmosq_client.c \
src/zmosq_server.c

Expand Down
4 changes: 3 additions & 1 deletion src/zmosq_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// Structure of our class

struct _zmosq_client_t {
int filler; // Declare class properties here
zactor_t *zmosq_server;
};


Expand All @@ -35,6 +35,7 @@ zmosq_client_new (void)
zmosq_client_t *self = (zmosq_client_t *) zmalloc (sizeof (zmosq_client_t));
assert (self);
// Initialize class properties here
self->zmosq_server = zactor_new (zmosq_server_actor, NULL);
return self;
}

Expand All @@ -49,6 +50,7 @@ zmosq_client_destroy (zmosq_client_t **self_p)
if (*self_p) {
zmosq_client_t *self = *self_p;
// Free class properties here
zactor_destroy (&self->zmosq_server);
// Free object itself
free (self);
*self_p = NULL;
Expand Down

0 comments on commit 0cae132

Please sign in to comment.