diff options
author | David Laban <david.laban@collabora.co.uk> | 2011-02-12 10:03:25 +0000 |
---|---|---|
committer | David Laban <david.laban@collabora.co.uk> | 2011-02-12 11:02:57 +0000 |
commit | 8dcddb61752cfa140df30c94b54bd02684419323 (patch) | |
tree | 5ba95bbfdafdfd8152d783c180bfd8c49499fd7e /rakia/text-channel.h | |
parent | ada52bcb3064a5a7fa0e75038f4365b45376518c (diff) |
Rename project to telepathy-rakia
For the curious, these are the commands you need:
git clean -d
git mv tpsip-extensions extensions
git mv tpsip rakia
sed -i \
-e 's/libtpsip-extensions.la/librakia-extensions.la/g' \
-e 's/libtpsip_extensions_la/librakia_extensions_la/g' \
-e 's/tpsip-extensions/extensions/g' \
-e 's/sofiasip/rakia/g' \
-e 's/tpsip/rakia/g' \
-e 's/Tpsip/Rakia/g' \
-e 's/SOFIASIP/RAKIA/g' \
*/*.[ch] .gitignore configure.ac $(find -name 'Makefile.am' ;
find -name '*.py' ; find -name '*.in')
git mv ./docs/telepathy-sofiasip.8.in ./docs/telepathy-rakia.8.in
git mv ./src/telepathy-sofiasip.c ./src/telepathy-rakia.c
git mv ./data/org.freedesktop.Telepathy.ConnectionManager.sofiasip.service.in \
./data/org.freedesktop.Telepathy.ConnectionManager.rakia.service.in
git mv ./tests/twisted/tools/sofiasip.service.in \
./tests/twisted/tools/rakia.service.in
./autogen.sh && make distcheck
Diffstat (limited to 'rakia/text-channel.h')
-rw-r--r-- | rakia/text-channel.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/rakia/text-channel.h b/rakia/text-channel.h new file mode 100644 index 0000000..e74eb1c --- /dev/null +++ b/rakia/text-channel.h @@ -0,0 +1,72 @@ +/* + * sip-text-channel.h - Header for RakiaTextChannel + * Copyright (C) 2005-2008 Collabora Ltd. + * Copyright (C) 2005-2009 Nokia Corporation + * + * This work is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This work is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this work; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __TPSIP_TEXT_CHANNEL_H__ +#define __TPSIP_TEXT_CHANNEL_H__ + +#include <glib-object.h> +#include <telepathy-glib/dbus-properties-mixin.h> +#include <telepathy-glib/handle.h> +#include <telepathy-glib/message-mixin.h> + +#include <rakia/sofia-decls.h> + +G_BEGIN_DECLS + +typedef struct _RakiaTextChannel RakiaTextChannel; +typedef struct _RakiaTextChannelClass RakiaTextChannelClass; + +struct _RakiaTextChannelClass { + GObjectClass parent_class; + + TpDBusPropertiesMixinClass dbus_props_class; +}; + +struct _RakiaTextChannel { + GObject parent; + + TpMessageMixin message_mixin; +}; + +GType rakia_text_channel_get_type(void); + +/* TYPE MACROS */ +#define TPSIP_TYPE_TEXT_CHANNEL \ + (rakia_text_channel_get_type()) +#define TPSIP_TEXT_CHANNEL(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), TPSIP_TYPE_TEXT_CHANNEL, RakiaTextChannel)) +#define TPSIP_TEXT_CHANNEL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), TPSIP_TYPE_TEXT_CHANNEL, RakiaTextChannelClass)) +#define TPSIP_IS_TEXT_CHANNEL(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), TPSIP_TYPE_TEXT_CHANNEL)) +#define TPSIP_IS_TEXT_CHANNEL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), TPSIP_TYPE_TEXT_CHANNEL)) +#define TPSIP_TEXT_CHANNEL_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), TPSIP_TYPE_TEXT_CHANNEL, RakiaTextChannelClass)) + +void rakia_text_channel_receive (RakiaTextChannel *obj, + const sip_t *sip, + TpHandle sender, + const char *text, + gsize len); + +G_END_DECLS + +#endif /* #ifndef __TPSIP_TEXT_CHANNEL_H__*/ |