moved string_destroy_notify() from base.c to utils.c, fixed parameter definition
parent
1faaf71de4
commit
9ba30eccbd
|
@ -1,6 +1,3 @@
|
|||
|
||||
#include "base.h"
|
||||
|
||||
void string_destroy_notify(gpointer *str) {
|
||||
g_string_free((GString*)str, TRUE);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -271,3 +271,6 @@ gchar *ev_backend_string(guint backend) {
|
|||
}
|
||||
|
||||
|
||||
void string_destroy_notify(gpointer str) {
|
||||
g_string_free((GString*)str, TRUE);
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue