diff options
-rw-r--r-- | salut/caps-manager.c | 5 | ||||
-rw-r--r-- | salut/utils.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/salut/caps-manager.c b/salut/caps-manager.c index 8e587e4..44b2e6c 100644 --- a/salut/caps-manager.c +++ b/salut/caps-manager.c @@ -28,10 +28,11 @@ #include <salut/caps-channel-manager.h> +#include "utils.h" + #define DEBUG(msg, ...) \ g_debug ("%s: " msg, G_STRFUNC, ##__VA_ARGS__) -#define FEATURE_PREFIX "urn:ytstenut:capabilities:" #define INTERESTED "com.meego.xpmn.ytstenut.Channel/interested/" static void channel_manager_iface_init (gpointer g_iface, gpointer data); @@ -71,7 +72,7 @@ ytst_caps_manager_represent_client (GabbleCapsChannelManager *manager, cap = *t + strlen (INTERESTED); - feature = g_strdup_printf ("%s%s+notify", FEATURE_PREFIX, cap); + feature = g_strdup_printf ("%s%s+notify", CAPS_FEATURE_PREFIX, cap); gabble_capability_set_add (cap_set, feature); diff --git a/salut/utils.h b/salut/utils.h index bcab939..3590e2d 100644 --- a/salut/utils.h +++ b/salut/utils.h @@ -42,6 +42,8 @@ typedef enum { YTST_MESSAGE_ERROR_ITEM_NOT_FOUND, } YtstMessageError; +#define CAPS_FEATURE_PREFIX "urn:ytstenut:capabilities:" + gint ytst_message_error_type_to_wocky (guint ytstenut_type); guint ytst_message_error_type_from_wocky (gint wocky_type); |