コード例 #1
0
NS_IMETHODIMP
csTpConnectionInterfaceLocation::CallSetLocation(nsIArray *aLocation,
    csITpConnectionInterfaceLocationSetLocationCB *cb)
{
  if (!m_Proxy)
    return NS_ERROR_NOT_INITIALIZED;

  /* TODO */

  NS_IF_ADDREF(cb);
  tp_cli_connection_interface_location_call_set_location(m_Proxy, -1,
      NULL,
      cb? SetLocationResponse: NULL, cb? cb: NULL, NULL, NULL);

  return NS_OK;
}
コード例 #2
0
void
empathy_tp_contact_factory_set_location (EmpathyTpContactFactory *tp_factory,
					 GHashTable              *location)
{
	EmpathyTpContactFactoryPriv *priv = GET_PRIV (tp_factory);

	g_return_if_fail (EMPATHY_IS_TP_CONTACT_FACTORY (tp_factory));

	DEBUG ("Setting location");

	tp_cli_connection_interface_location_call_set_location (priv->connection,
								 -1,
								 location,
								 tp_contact_factory_set_location_cb,
								 NULL, NULL,
								 G_OBJECT (tp_factory));
}