dbus.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. *
  3. * oFono - Open Telephony stack for Linux
  4. *
  5. * Copyright (C) 2008-2011 Intel Corporation. All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  19. *
  20. */
  21. #ifndef __OFONO_DBUS_H
  22. #define __OFONO_DBUS_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #include <dbus/dbus.h>
  27. #define OFONO_SERVICE "org.ofono"
  28. #define OFONO_MANAGER_INTERFACE "org.ofono.Manager"
  29. #define OFONO_MANAGER_PATH "/"
  30. #define OFONO_MODEM_INTERFACE "org.ofono.Modem"
  31. #define OFONO_CALL_BARRING_INTERFACE "org.ofono.CallBarring"
  32. #define OFONO_CALL_FORWARDING_INTERFACE "org.ofono.CallForwarding"
  33. #define OFONO_CALL_METER_INTERFACE "org.ofono.CallMeter"
  34. #define OFONO_CALL_SETTINGS_INTERFACE "org.ofono.CallSettings"
  35. #define OFONO_CALL_VOLUME_INTERFACE OFONO_SERVICE ".CallVolume"
  36. #define OFONO_CELL_BROADCAST_INTERFACE "org.ofono.CellBroadcast"
  37. #define OFONO_CONNECTION_CONTEXT_INTERFACE "org.ofono.ConnectionContext"
  38. #define OFONO_CONNECTION_MANAGER_INTERFACE "org.ofono.ConnectionManager"
  39. #define OFONO_MESSAGE_MANAGER_INTERFACE "org.ofono.MessageManager"
  40. #define OFONO_MESSAGE_INTERFACE "org.ofono.Message"
  41. #define OFONO_MESSAGE_WAITING_INTERFACE "org.ofono.MessageWaiting"
  42. #define OFONO_SUPPLEMENTARY_SERVICES_INTERFACE "org.ofono.SupplementaryServices"
  43. #define OFONO_NETWORK_REGISTRATION_INTERFACE "org.ofono.NetworkRegistration"
  44. #define OFONO_NETWORK_OPERATOR_INTERFACE "org.ofono.NetworkOperator"
  45. #define OFONO_PHONEBOOK_INTERFACE "org.ofono.Phonebook"
  46. #define OFONO_RADIO_SETTINGS_INTERFACE "org.ofono.RadioSettings"
  47. #define OFONO_AUDIO_SETTINGS_INTERFACE "org.ofono.AudioSettings"
  48. #define OFONO_TEXT_TELEPHONY_INTERFACE "org.ofono.TextTelephony"
  49. #define OFONO_SIM_MANAGER_INTERFACE "org.ofono.SimManager"
  50. #define OFONO_VOICECALL_INTERFACE "org.ofono.VoiceCall"
  51. #define OFONO_VOICECALL_MANAGER_INTERFACE "org.ofono.VoiceCallManager"
  52. #define OFONO_STK_INTERFACE OFONO_SERVICE ".SimToolkit"
  53. #define OFONO_SIM_APP_INTERFACE OFONO_SERVICE ".SimToolkitAgent"
  54. #define OFONO_LOCATION_REPORTING_INTERFACE OFONO_SERVICE ".LocationReporting"
  55. #define OFONO_GNSS_INTERFACE "org.ofono.AssistedSatelliteNavigation"
  56. #define OFONO_GNSS_POSR_AGENT_INTERFACE "org.ofono.PositioningRequestAgent"
  57. #define OFONO_HANDSFREE_INTERFACE OFONO_SERVICE ".Handsfree"
  58. #define OFONO_SIRI_INTERFACE OFONO_SERVICE ".Siri"
  59. #define OFONO_NETMON_INTERFACE OFONO_SERVICE ".NetworkMonitor"
  60. /* CDMA Interfaces */
  61. #define OFONO_CDMA_VOICECALL_MANAGER_INTERFACE "org.ofono.cdma.VoiceCallManager"
  62. #define OFONO_CDMA_MESSAGE_MANAGER_INTERFACE "org.ofono.cdma.MessageManager"
  63. #define OFONO_CDMA_CONNECTION_MANAGER_INTERFACE "org.ofono.cdma.ConnectionManager"
  64. #define OFONO_CDMA_NETWORK_REGISTRATION_INTERFACE \
  65. "org.ofono.cdma.NetworkRegistration"
  66. /* Essentially a{sv} */
  67. #define OFONO_PROPERTIES_ARRAY_SIGNATURE DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING \
  68. DBUS_TYPE_STRING_AS_STRING \
  69. DBUS_TYPE_VARIANT_AS_STRING \
  70. DBUS_DICT_ENTRY_END_CHAR_AS_STRING
  71. DBusConnection *ofono_dbus_get_connection(void);
  72. void ofono_dbus_dict_append(DBusMessageIter *dict, const char *key, int type,
  73. const void *value);
  74. void ofono_dbus_dict_append_array(DBusMessageIter *dict, const char *key,
  75. int type, const void *val);
  76. void ofono_dbus_dict_append_dict(DBusMessageIter *dict, const char *key,
  77. int type, const void *val);
  78. int ofono_dbus_signal_property_changed(DBusConnection *conn, const char *path,
  79. const char *interface, const char *name,
  80. int type, const void *value);
  81. int ofono_dbus_signal_array_property_changed(DBusConnection *conn,
  82. const char *path,
  83. const char *interface,
  84. const char *name, int type,
  85. const void *value);
  86. int ofono_dbus_signal_dict_property_changed(DBusConnection *conn,
  87. const char *path,
  88. const char *interface,
  89. const char *name, int type,
  90. const void *value);
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* __OFONO_DBUS_H */