Logo Search packages:      
Sourcecode: libtelepathy version File versions

check-backwards-compat.c

#include "tp-chan.h"
#include "tp-conn.h"
#include "tp-constants.h"
#include "tp-props-iface.h"

int
main (int argc, char **argv)
{
  g_assert (TELEPATHY_CHAN_IFACE_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_CONTACTLIST_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_STREAMED_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_ROOMLIST_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_TEXT_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_DTMF_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_CHAT_STATE_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_GROUP_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_HOLD_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_PASSWORD_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_TRANSFER_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_MEDIA_SIGNALLING_QUARK != 0);
  g_assert (TELEPATHY_CHAN_IFACE_TUBES_QUARK != 0);

  g_assert (tp_get_chan_interface () != 0);
  g_assert (tp_get_chan_contactlist_interface () != 0);
  g_assert (tp_get_chan_streamed_interface () != 0);
  g_assert (tp_get_chan_roomlist_interface () != 0);
  g_assert (tp_get_chan_text_interface () != 0);
  g_assert (tp_get_chan_dtmf_interface () != 0);
  g_assert (tp_get_chan_chat_state_interface () != 0);
  g_assert (tp_get_chan_group_interface () != 0);
  g_assert (tp_get_chan_hold_interface () != 0);
  g_assert (tp_get_chan_password_interface () != 0);
  g_assert (tp_get_chan_transfer_interface () != 0);
  g_assert (tp_get_chan_media_signalling_interface () != 0);
  g_assert (tp_get_chan_tubes_interface () != 0);

  g_assert (TELEPATHY_CONN_IFACE_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_ALIASING_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_AVATARS_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_CAPABILITIES_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_CONTACTINFO_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_FORWARDING_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_PRESENCE_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_PRIVACY_QUARK != 0);
  g_assert (TELEPATHY_CONN_IFACE_RENAMING_QUARK != 0);

  g_assert (TELEPATHY_CONN_IFACE_QUARK == tp_get_conn_interface ());
  g_assert (TELEPATHY_CONN_IFACE_ALIASING_QUARK ==
      tp_get_conn_aliasing_interface ());
  g_assert (TELEPATHY_CONN_IFACE_AVATARS_QUARK ==
      tp_get_conn_avatars_interface ());
  g_assert (TELEPATHY_CONN_IFACE_CAPABILITIES_QUARK ==
      tp_get_conn_capabilities_interface ());
  g_assert (TELEPATHY_CONN_IFACE_CONTACTINFO_QUARK ==
      tp_get_conn_contactinfo_interface ());
  g_assert (TELEPATHY_CONN_IFACE_FORWARDING_QUARK ==
      tp_get_conn_forwarding_interface ());
  g_assert (TELEPATHY_CONN_IFACE_PRESENCE_QUARK ==
      tp_get_conn_presence_interface ());
  g_assert (TELEPATHY_CONN_IFACE_PRIVACY_QUARK ==
      tp_get_conn_privacy_interface ());
  g_assert (TELEPATHY_CONN_IFACE_RENAMING_QUARK ==
      tp_get_conn_renaming_interface ());

  g_assert (TP_CONN_HANDLE_TYPE_NONE == TP_HANDLE_TYPE_NONE);
  g_assert (TP_CONN_HANDLE_TYPE_CONTACT == TP_HANDLE_TYPE_CONTACT);
  g_assert (TP_CONN_HANDLE_TYPE_ROOM == TP_HANDLE_TYPE_ROOM);
  g_assert (TP_CONN_HANDLE_TYPE_LIST == TP_HANDLE_TYPE_LIST);
  g_assert (TP_CONN_HANDLE_TYPE_GROUP == TP_HANDLE_TYPE_GROUP);

  g_assert (TELEPATHY_PROPS_IFACE_QUARK != 0);
  g_assert (TELEPATHY_PROPS_IFACE_QUARK == tp_get_props_interface ());

  return 0;
}

Generated by  Doxygen 1.6.0   Back to index