ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src service.c,1.12,1.13 service.h,1.14,1.15


From: Philip S Tellis <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src service.c,1.12,1.13 service.h,1.14,1.15
Date: Wed, 29 Jan 2003 04:22:19 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv24958/src

Modified Files:
        service.c service.h 
Log Message:
added change_user_name

Index: service.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/service.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- service.c   28 Jan 2003 10:35:35 -0000      1.12
+++ service.c   29 Jan 2003 09:22:17 -0000      1.13
@@ -60,7 +60,7 @@
 struct service eb_services[255];
 
 /* Add a new service, or replace an existing one */
-gint add_service(struct service *Service_Info)
+int add_service(struct service *Service_Info)
 {
        int i;
        LList *session_prefs=NULL;
@@ -99,7 +99,7 @@
 }
 
 /* This now creates a service if the name is not recognized */
-gint get_service_id( gchar * servicename )
+int get_service_id( char * servicename )
 {
        int i;
        char buf[1024];
@@ -121,7 +121,7 @@
        return(NUM_SERVICES-1);
 }
 
-gchar *get_service_name( gint service_id )
+char *get_service_name( int service_id )
 {
        if ((service_id >= 0) && (service_id < NUM_SERVICES))
                return (eb_services[service_id].name);
@@ -176,9 +176,9 @@
        return TRUE;
 }
 
-static gint check_idle()
+static int check_idle()
 {
-       gint            idle_reporter = -1;
+       int             idle_reporter = -1;
        const int       sendIdleTime = iGetLocalPref("do_send_idle_time");
 
 #ifdef HAVE_MIT_SAVER_EXTENSION

Index: service.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/service.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- service.h   28 Jan 2003 06:20:06 -0000      1.14
+++ service.h   29 Jan 2003 09:22:17 -0000      1.15
@@ -37,7 +37,7 @@
 
 struct service_callbacks {
        /*callback to determine if remote account is online*/
-       gboolean (*query_connected) (eb_account *account);
+       int (*query_connected) (eb_account *account);
 
        /*callback that will establish connection to server, and set up
          any timers and listeners necessary */
@@ -49,7 +49,7 @@
        /* send message from one account to another */
        void (*send_im) (eb_local_account *account_from,
                         eb_account *account_to,
-                        gchar *message);
+                        char *message);
 
         /* send a typing notification - the return value is the number 
           of seconds to wait before sending again - NULL if the service 
@@ -73,10 +73,10 @@
        LList * (*get_states)();
 
        /*Retruns the index to the current state that the service is int*/
-       gint (*get_current_state)(eb_local_account * account);
+       int (*get_current_state)(eb_local_account * account);
 
        /*Sets the online status for the given account*/
-       void (*set_current_state)(eb_local_account * account, gint state);
+       void (*set_current_state)(eb_local_account * account, int state);
 
        /*Checks login validity */
        char * (*check_login)(char * login, char * pass);
@@ -91,32 +91,35 @@
        void (*ignore_user)(eb_account * account);
 
        /*Notifies the service that the user is no longer ignored*/
-       void (*unignore_user)(eb_account * account, gchar *new_group);
+       void (*unignore_user)(eb_account * account, char *new_group);
+
+       /*Notifies the service that a user's contact/nick name has changed */
+       void (*change_user_name)(eb_account * account, char * name);
 
        /*Notifies the service that an account's group has changed
          can be used to inform the server of the group change.
          Can be NULL if not implemented*/
-       void (*change_group)(eb_account * account, gchar *new_group);
+       void (*change_group)(eb_account * account, char *new_group);
 
        /* deletes group on server 
           unspecified results if called with a non-empty group ! */
-       void (*del_group)(gchar *group);
+       void (*del_group)(char *group);
        
-       void (*add_group)(gchar *group);
+       void (*add_group)(char *group);
        
-       void (*rename_group)(gchar *old_group, gchar *new_group);
+       void (*rename_group)(char *old_group, char *new_group);
 
        /*Informs the service of an account that it needs to manage*/
-       gboolean (*is_suitable)(eb_local_account *local, eb_account *remote);
+       int (*is_suitable)(eb_local_account *local, eb_account *remote);
 
        /*Creates a new account*/
-       eb_account*(*new_account)( gchar * account );
+       eb_account*(*new_account)( char * account );
 
        /*This returns the string representing the status,
          this will get used on the Contact List, if statuses
          are not available, this should return the empty string */
 
-       gchar *(*get_status_string)(eb_account * account);
+       char *(*get_status_string)(eb_account * account);
 
        /*This returns the string representing the status,
          this will get used on the Contact List, if statuses
@@ -126,15 +129,15 @@
 
        /*set the idle time (set this to null if N/A)*/
 
-       void (*set_idle)(eb_local_account * account, gint idle );
+       void (*set_idle)(eb_local_account * account, int idle );
 
        /* set an away message */
 
-       void (*set_away)(eb_local_account * account, gchar * message );
+       void (*set_away)(eb_local_account * account, char * message );
 
        /*send a message to a chat room*/
 
-       void (*send_chat_room_message)(eb_chat_room * room, gchar * message);
+       void (*send_chat_room_message)(eb_chat_room * room, char * message);
 
        /*these are used to join and leave a chat room */
 
@@ -143,7 +146,7 @@
 
        /*this it to create a new chat room*/
 
-       eb_chat_room * (*make_chat_room)(gchar * name, eb_local_account * 
account);
+       eb_chat_room * (*make_chat_room)(char * name, eb_local_account * 
account);
 
        /*this is to invite somebody into the chat room*/
 
@@ -200,7 +203,7 @@
 
         /* This returns the color associated with this protocol (in HTML form,
            so for example AIM is "#000088" */
-        gchar * (*get_color)(void);
+        char * (*get_color)(void);
 };
 
 /*for every server you have the following: the name of the service,
@@ -208,12 +211,12 @@
   to the service specific callbacks.
   */
 struct service {
-       gchar *name;
-       gint protocol_id;
-       gboolean offline_messaging;
-       gboolean group_chat;
-       gboolean file_transfer;
-       gboolean can_iconvert;
+       char *name;
+       int protocol_id;
+       int offline_messaging;
+       int group_chat;
+       int file_transfer;
+       int can_iconvert;
        struct service_callbacks *sc;
 };
 
@@ -222,9 +225,9 @@
 extern "C" {
 #endif
 
-gint add_service(struct service *Service_Info);
-gint get_service_id( gchar * servicename );
-gchar* get_service_name( gint serviceid );
+int add_service(struct service *Service_Info);
+int get_service_id( char * servicename );
+char* get_service_name( int serviceid );
 
 void load_modules();
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]