Changed Jid typedef to be explicit pointer

This commit is contained in:
James Booth
2013-01-13 00:05:25 +00:00
parent 7733af1293
commit 1cc33cc491
4 changed files with 22 additions and 21 deletions

View File

@@ -26,10 +26,10 @@
#include "jid.h"
Jid
Jid *
jid_create(const gchar * const str)
{
Jid result = NULL;
Jid *result = NULL;
if (str == NULL) {
return NULL;

View File

@@ -33,9 +33,9 @@ struct jid_t {
char *fulljid;
};
typedef struct jid_t *Jid;
typedef struct jid_t Jid;
Jid jid_create(const gchar * const str);
Jid * jid_create(const gchar * const str);
gboolean jid_is_room(const char * const room_jid);
char * create_full_room_jid(const char * const room,

View File

@@ -29,6 +29,7 @@
#include "prof_autocomplete.h"
typedef struct _muc_room_t {
char *room; // e.g. test@conference.server
char *nick; // e.g. Some User
char *subject;