comparison libpurple/protocols/myspace/session.h @ 29367:e137c1fc216a

Check if memory has been freed by looking at its contents does not work 100% of the time. If any of these functions are called with an invalid object, then the correct fix is to determine why the function was called and prevent it from being called.
author Mark Doliner <mark@kingant.net>
date Fri, 05 Feb 2010 01:18:18 +0000
parents 1d77f138847b
children a5f50581b7c0
comparison
equal deleted inserted replaced
29366:ef1c3791ad32 29367:e137c1fc216a
52 time_t last_comm; /**< Time received last communication */ 52 time_t last_comm; /**< Time received last communication */
53 guint inbox_status; /**< Bit field of inbox notifications */ 53 guint inbox_status; /**< Bit field of inbox notifications */
54 guint inbox_handle; /**< The handle for the mail check timer */ 54 guint inbox_handle; /**< The handle for the mail check timer */
55 } MsimSession; 55 } MsimSession;
56 56
57 /* Check if an MsimSession is valid */
58 #define MSIM_SESSION_VALID(s) (session != NULL && session->magic == MSIM_SESSION_STRUCT_MAGIC)
59
60 MsimSession *msim_session_new(PurpleAccount *acct); 57 MsimSession *msim_session_new(PurpleAccount *acct);
61 void msim_session_destroy(MsimSession *session); 58 void msim_session_destroy(MsimSession *session);
62 59
63 #endif /* !_MYSPACE_SESSION_H */ 60 #endif /* !_MYSPACE_SESSION_H */