[Frugalware-darcs] setup-current: make glib usage global, new data_t type && data_new() function

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:59:24 CET 2006


[make glib usage global, new data_t type && data_new() function
VMiklos <vmiklos at frugalware.org>**20051103220324] {
hunk ./src/plugins/Makefile 19
-	$(CC) -shared -Wl,-soname,bar.so -o 50bar.so $<
+	$(CC) $(CFLAGS) -shared -Wl,-soname,bar.so -o 50bar.so $< $(LDFLAGS)
hunk ./src/plugins/asklang.c 5
-#include <glib.h>
hunk ./src/setup.h 3
+#include <glib.h>
hunk ./src/setup.h 19
+
+typedef struct
+{
+	char *name;
+	void *data;
+} data_t;
hunk ./src/util.c 38
+data_t *data_new(void)
+{
+	data_t *data=NULL;
+	
+	data = (data_t*)malloc(sizeof(data_t));
+	if(data==NULL)
+		return(NULL);
+	data->name=NULL;
+	data->data=NULL;
+	return(data);
+}
+
hunk ./src/util.h 9
+data_t *data_new(void);
}


More information about the Frugalware-darcs mailing list