Using GSList for contact list

This commit is contained in:
James Booth
2012-05-10 00:30:03 +01:00
parent b2385010b5
commit a336148cd2
6 changed files with 123 additions and 190 deletions

View File

@@ -23,6 +23,8 @@
#ifndef CONTACT_LIST_H
#define CONTACT_LIST_H
#include <glib.h>
#include "contact.h"
struct contact_node_t {
@@ -35,9 +37,9 @@ void reset_search_attempts(void);
int contact_list_add(const char * const name, const char * const show,
const char * const status);
int contact_list_remove(const char * const name);
struct contact_node_t * get_contact_list(void);
GSList * get_contact_list(void);
char * find_contact(char *search_str);
int get_size(struct contact_node_t *list);
void destroy_list(struct contact_node_t *list);
int get_size(GSList *list);
void destroy_list(GSList *list);
#endif