Replaced GLib allocation helpers in history management with standard free/strdup to reduce unnecessary GLib coupling.

Updated the network helper API to use uint32_t and standard allocation/duplication routines, dropping the GLib include from the implementation and adding <stdint.h> to the header.
This commit is contained in:
2026-01-25 23:37:09 -07:00
parent d4134c94b3
commit c8ee118f00
3 changed files with 13 additions and 12 deletions

View File

@@ -20,6 +20,8 @@
#ifndef ZOITECHAT_NETWORK_H
#define ZOITECHAT_NETWORK_H
#include <stdint.h>
typedef struct netstore_
{
#ifdef NETWORK_PRIVATE
@@ -36,7 +38,7 @@ void net_store_destroy (netstore *ns);
int net_connect (netstore *ns, int sok4, int sok6, int *sok_return);
char *net_resolve (netstore *ns, char *hostname, int port, char **real_host);
void net_bind (netstore *tobindto, int sok4, int sok6);
char *net_ip (guint32 addr);
char *net_ip (uint32_t addr);
void net_sockets (int *sok4, int *sok6);
#endif