Browse Source

moved string_destroy_notify() from base.c to utils.c, fixed parameter definition

personal/stbuehler/wip
Thomas Porzelt 14 years ago
parent
commit
9ba30eccbd
  1. 3
      src/base.c
  2. 2
      src/base.h
  3. 3
      src/utils.c
  4. 2
      src/utils.h

3
src/base.c

@ -1,6 +1,3 @@
#include "base.h"
void string_destroy_notify(gpointer *str) {
g_string_free((GString*)str, TRUE);
}

2
src/base.h

@ -36,8 +36,6 @@ typedef struct server server;
struct connection;
typedef struct connection connection;
LI_API void string_destroy_notify(gpointer *str);
#include "server.h"
#include "worker.h"

3
src/utils.c

@ -271,3 +271,6 @@ gchar *ev_backend_string(guint backend) {
}
void string_destroy_notify(gpointer str) {
g_string_free((GString*)str, TRUE);
}

2
src/utils.h

@ -24,4 +24,6 @@ LI_API gchar counter_format(guint64 *count, guint factor);
LI_API gchar *ev_backend_string(guint backend);
LI_API void string_destroy_notify(gpointer str);
#endif

Loading…
Cancel
Save