summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-04 14:45:22 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-04 17:30:02 +0200
commit29ed3f20b102b22f90861349ac96e32248107c6e (patch)
tree9aab3ba2fa3a7cece612d65f9a61dd134555ac13 /src
parenta95f2443565eb3e0aad05ed927a52032d90a6555 (diff)
s/NUM_TP/TP_NUM
Diffstat (limited to 'src')
-rw-r--r--src/connection.c2
-rw-r--r--src/connection.h2
-rw-r--r--src/ft-channel.c4
-rw-r--r--src/ft-manager.c2
-rw-r--r--src/message-util.c2
-rw-r--r--src/server-sasl-channel.c2
-rw-r--r--src/tls-certificate.c2
-rw-r--r--src/tube-stream.c4
8 files changed, 10 insertions, 10 deletions
diff --git a/src/connection.c b/src/connection.c
index 2917bc22f..4f1078b85 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -852,7 +852,7 @@ gabble_connection_get_unique_name (TpBaseConnection *self)
*/
void
_gabble_connection_create_handle_repos (TpBaseConnection *conn,
- TpHandleRepoIface *repos[NUM_TP_HANDLE_TYPES])
+ TpHandleRepoIface *repos[TP_NUM_HANDLE_TYPES])
{
repos[TP_HANDLE_TYPE_CONTACT] =
tp_dynamic_handle_repo_new (TP_HANDLE_TYPE_CONTACT,
diff --git a/src/connection.h b/src/connection.h
index 653ec6ac4..c92515542 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -310,7 +310,7 @@ const gchar **gabble_connection_get_guaranteed_interfaces (void);
/* extern only for the benefit of the unit tests */
void _gabble_connection_create_handle_repos (TpBaseConnection *conn,
- TpHandleRepoIface *repos[NUM_TP_HANDLE_TYPES]);
+ TpHandleRepoIface *repos[TP_NUM_HANDLE_TYPES]);
/* For unit tests only */
void gabble_connection_set_disco_reply_timeout (guint timeout);
diff --git a/src/ft-channel.c b/src/ft-channel.c
index fd82405c5..91af4931e 100644
--- a/src/ft-channel.c
+++ b/src/ft-channel.c
@@ -633,7 +633,7 @@ gabble_file_transfer_channel_class_init (
"TpFileTransferState state",
"State of the file transfer in this channel",
0,
- NUM_TP_FILE_TRANSFER_STATES,
+ TP_NUM_FILE_TRANSFER_STATES,
TP_FILE_TRANSFER_STATE_NONE,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -674,7 +674,7 @@ gabble_file_transfer_channel_class_init (
"TpFileHashType content-hash-type",
"Hash type",
0,
- NUM_TP_FILE_HASH_TYPES,
+ TP_NUM_FILE_HASH_TYPES,
TP_FILE_HASH_TYPE_NONE,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/ft-manager.c b/src/ft-manager.c
index 675992a70..cca26d4cb 100644
--- a/src/ft-manager.c
+++ b/src/ft-manager.c
@@ -521,7 +521,7 @@ gabble_ft_manager_handle_request (TpChannelManager *manager,
}
else
{
- if (content_hash_type >= NUM_TP_FILE_HASH_TYPES)
+ if (content_hash_type >= TP_NUM_FILE_HASH_TYPES)
{
g_set_error (&error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"%u is not a valid ContentHashType", content_hash_type);
diff --git a/src/message-util.c b/src/message-util.c
index 01bb71735..6b80708f7 100644
--- a/src/message-util.c
+++ b/src/message-util.c
@@ -118,7 +118,7 @@ gabble_message_util_build_stanza (TpMessage *message,
if (!result)
RETURN_INVALID_ARGUMENT ("message-type must be a 32-bit unsigned integer");
- if (type >= NUM_TP_CHANNEL_TEXT_MESSAGE_TYPES)
+ if (type >= TP_NUM_CHANNEL_TEXT_MESSAGE_TYPES)
RETURN_INVALID_ARGUMENT ("invalid message type: %u", type);
n_parts = tp_message_count_parts (message);
diff --git a/src/server-sasl-channel.c b/src/server-sasl-channel.c
index 3eb4f66f2..9ff85054a 100644
--- a/src/server-sasl-channel.c
+++ b/src/server-sasl-channel.c
@@ -382,7 +382,7 @@ gabble_server_sasl_channel_class_init (GabbleServerSaslChannelClass *klass)
param_spec = g_param_spec_uint ("sasl-status", "SASLStatus",
"Status of this channel",
- 0, NUM_TP_SASL_STATUSES, 0,
+ 0, TP_NUM_SASL_STATUSES, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_SASL_STATUS,
param_spec);
diff --git a/src/tls-certificate.c b/src/tls-certificate.c
index 303b70644..c00bac7a8 100644
--- a/src/tls-certificate.c
+++ b/src/tls-certificate.c
@@ -216,7 +216,7 @@ gabble_tls_certificate_class_init (GabbleTLSCertificateClass *klass)
pspec = g_param_spec_uint ("state",
"State of this certificate",
"The state of this TLS certificate.",
- 0, NUM_TP_TLS_CERTIFICATE_STATES - 1,
+ 0, TP_NUM_TLS_CERTIFICATE_STATES - 1,
TP_TLS_CERTIFICATE_STATE_PENDING,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (oclass, PROP_STATE, pspec);
diff --git a/src/tube-stream.c b/src/tube-stream.c
index e1d2289de..8bce156d4 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1483,7 +1483,7 @@ gabble_tube_stream_class_init (GabbleTubeStreamClass *gabble_tube_stream_class)
"address type",
"a TpSocketAddressType representing the type of the listening"
"address of the local service",
- 0, NUM_TP_SOCKET_ADDRESS_TYPES - 1,
+ 0, TP_NUM_SOCKET_ADDRESS_TYPES - 1,
TP_SOCKET_ADDRESS_TYPE_UNIX,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_ADDRESS_TYPE,
@@ -1502,7 +1502,7 @@ gabble_tube_stream_class_init (GabbleTubeStreamClass *gabble_tube_stream_class)
"access control",
"a TpSocketAccessControl representing the access control "
"the local service applies to the local socket",
- 0, NUM_TP_SOCKET_ACCESS_CONTROLS - 1,
+ 0, TP_NUM_SOCKET_ACCESS_CONTROLS - 1,
TP_SOCKET_ACCESS_CONTROL_LOCALHOST,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_ACCESS_CONTROL,