Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions priv/c_src/gtknode.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ gboolean gn_glade_init(char *filename);

/* marshalling functions (gtknode_marshal.c) */
void gn_wrap_ans(char* tag, ei_x_buff* xbuf);
void gn_wrap_reply(char* tag, ei_x_buff* xbuf);
void gn_enc_1_error(ei_x_buff *xbuf, char *err);
void gn_enc_2_error(ei_x_buff *xbuf, char *err);

void gn_put_atom(ei_x_buff *xbuf, char *p);
void gn_put_tuple(ei_x_buff *xbuf, int N);
void gn_put_void(ei_x_buff *xbuf);
void gn_put_pid(ei_x_buff *xbuf, erlang_pid *p);
Expand Down
5 changes: 4 additions & 1 deletion priv/c_src/gtknode_marshal.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include "gtknode.h"
#include <ctype.h>
#include <string.h>
#include <stdlib.h>

static gboolean gn_get_arg_gtype(ei_x_buff *XBUF, char *B, int *I, GType *gt);

static void hash_init() {
extern GHashTable* ghash;
if ( ! ghash ) ghash = g_hash_table_new(g_str_hash, g_str_equal);
Expand Down Expand Up @@ -401,7 +404,7 @@ gboolean gn_get_arg_list(ei_x_buff *XBUF, char *B, int *I,
return TRUE;
}

gboolean gn_get_arg_gtype(ei_x_buff *XBUF, char *B, int *I, GType *gt){
static gboolean gn_get_arg_gtype(ei_x_buff *XBUF, char *B, int *I, GType *gt){
gchar type_str[MAXATOMLEN+1];

if ( ! gn_get_arg_gchar_fix(XBUF, B, I, type_str) ) return FALSE;
Expand Down