diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-05-03 19:33:33 +0100 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2010-06-29 20:31:56 -0300 |
commit | cfdf65c0b154194f0252bfd928bfae2f93f8f9b5 (patch) | |
tree | 77da506e2ffadbddd777bdd9e2b281a697e2faaa /telepathy-glib/protocol.h | |
parent | c7edd5df70bf015b1e0c8da52ab1fde54c1f9b83 (diff) | |
download | telepathy-glib-cfdf65c0b154194f0252bfd928bfae2f93f8f9b5.tar.gz |
Generate code for Protocol objects and add a stub TpProtocol class
Diffstat (limited to 'telepathy-glib/protocol.h')
-rw-r--r-- | telepathy-glib/protocol.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/telepathy-glib/protocol.h b/telepathy-glib/protocol.h new file mode 100644 index 000000000..3be7d8acd --- /dev/null +++ b/telepathy-glib/protocol.h @@ -0,0 +1,67 @@ +/* TpProtocol + * + * Copyright © 2010 Collabora Ltd. + * + * This library 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 library 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 library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef TP_PROTOCOL_H +#define TP_PROTOCOL_H + +#include <glib-object.h> + +#include <telepathy-glib/proxy.h> + +G_BEGIN_DECLS + +typedef struct _TpProtocol TpProtocol; +typedef struct _TpProtocolClass TpProtocolClass; +typedef struct _TpProtocolPrivate TpProtocolPrivate; +typedef struct _TpProtocolClassPrivate TpProtocolClassPrivate; + +GType tp_protocol_get_type (void) G_GNUC_CONST; + +#define TP_TYPE_PROTOCOL \ + (tp_protocol_get_type ()) +#define TP_PROTOCOL(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), TP_TYPE_PROTOCOL, \ + TpProtocol)) +#define TP_PROTOCOL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), TP_TYPE_PROTOCOL, \ + TpProtocolClass)) +#define TP_IS_PROTOCOL(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TP_TYPE_PROTOCOL)) +#define TP_IS_PROTOCOL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), TP_TYPE_PROTOCOL)) +#define TP_PROTOCOL_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_PROTOCOL, \ + TpProtocolClass)) + +struct _TpProtocol +{ + /*<private>*/ + TpProxy parent; + TpProtocolPrivate *priv; +}; + +void tp_protocol_init_known_interfaces (void); + +TpProtocol *tp_protocol_new (TpDBusDaemon *dbus, const gchar *cm_name, + const gchar *protocol_name, const GHashTable *immutable_properties, + GError **error); + +G_END_DECLS + +#endif |