about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-04 00:37:10 +0000
committerJames Booth <boothj5@gmail.com>2013-02-04 00:37:10 +0000
commiteb26cab7396f472306981a052896fc20cb35464a (patch)
tree18e14f9cb9d5cd121305e8cee2a8d69ffe92be56 /src/xmpp
parent99232b05306ca187c7483239e8a54b1a904b900a (diff)
downloadprofani-tty-eb26cab7396f472306981a052896fc20cb35464a.tar.gz
Use of const in connection.c
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c11
-rw-r--r--src/xmpp/xmpp.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 591aaf0b..2687fa70 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -97,7 +97,8 @@ jabber_init(const int disable_tls)
 }
 
 jabber_conn_status_t
-jabber_connect_with_account(ProfAccount *account, const char * const passwd)
+jabber_connect_with_account(const ProfAccount * const account,
+    const char * const passwd)
 {
     assert(account != NULL);
     assert(passwd != NULL);
@@ -190,7 +191,7 @@ jabber_process_events(void)
 }
 
 void
-jabber_set_autoping(int seconds)
+jabber_set_autoping(const int seconds)
 {
     if (jabber_conn.conn_status == JABBER_CONNECTED) {
         xmpp_timed_handler_delete(jabber_conn.conn, _ping_timed_handler);
@@ -246,7 +247,7 @@ jabber_get_account_name(void)
 }
 
 void
-connection_set_presence_type(jabber_presence_t presence_type)
+connection_set_presence_type(const jabber_presence_t presence_type)
 {
     jabber_conn.presence_type = presence_type;
 }
@@ -261,7 +262,7 @@ connection_set_presence_message(const char * const message)
 }
 
 void
-connection_set_priority(int priority)
+connection_set_priority(const int priority)
 {
     jabber_conn.priority = priority;
 }
@@ -479,7 +480,7 @@ _ping_timed_handler(xmpp_conn_t * const conn, void * const userdata)
 }
 
 static log_level_t
-_get_log_level(xmpp_log_level_t xmpp_level)
+_get_log_level(const xmpp_log_level_t xmpp_level)
 {
     if (xmpp_level == XMPP_LEVEL_DEBUG) {
         return PROF_LEVEL_DEBUG;
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h
index 10c454c6..f5783425 100644
--- a/src/xmpp/xmpp.h
+++ b/src/xmpp/xmpp.h
@@ -54,7 +54,7 @@ typedef struct capabilities_t {
 void jabber_init(const int disable_tls);
 jabber_conn_status_t jabber_connect_with_details(const char * const jid,
     const char * const passwd, const char * const altdomain);
-jabber_conn_status_t jabber_connect_with_account(ProfAccount *account,
+jabber_conn_status_t jabber_connect_with_account(const ProfAccount * const account,
     const char * const passwd);
 void jabber_disconnect(void);
 void jabber_process_events(void);