Fixed all build time warnings.
Change-Id: I87ddc60e488ce5b753b2acae3aeb6cd325c576b4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
}
}
-done:
/* +XSAT: 11,DISC */
xsat_ptr = strstr(s, "11,DISC,");
if (xsat_ptr) {
GUnixFDList *fd_list;
GVariant *options = NULL;
int device_count = 0;
- GSList *l;
device_count = g_slist_length(active_devices);
if (transport_state == MEDIA_TRANSPORT_STATE_PLAYING) {
GDBusProxy *proxy;
- GVariant *ret;
GError *err = NULL;
proxy = g_dbus_proxy_new_sync(ag_dbus_conn,
iter, "{sv}", &key, &value_var)) {
DBG("key %s", key);
if (g_strcmp0(key, "State") == 0) {
- value = g_variant_get_string(
+ value = (gchar *)g_variant_get_string(
value_var,
NULL);
DBG("value %s", value);
INFO_C("Starting Bluetooth AG agent");
- g_type_init();
-
ag_features = __bt_ag_agent_get_ag_features();
ag.sdp_features = (uint16_t) ag_features & 0x1F;
int _bt_response_and_hold_response(void *t_device,
bt_hfp_agent_error_t err);
int _bt_answer_call_response(void *hs, bt_hfp_agent_error_t err);
+int _bt_read_phonebook_entries_indicator(const char *name,
+ const char *number,
+ uint32_t handle);
int _bt_hfp_get_activity_status_rsp(void *t_device,
int status,
bt_hfp_agent_error_t err);
int _bt_hfp_send_vendor_cmd(bt_ag_info_t *hs,
const char *cmd);
int _bt_vendor_cmd_response(void *t_device,
- bt_hfp_agent_error_t err);
+ bt_hfp_agent_error_t err);
\ No newline at end of file
g_variant_unref(value);
g_free(uni_name);
g_free(uni_number);
- g_free(name);
- g_free(number);
+ g_free((gpointer)name);
+ g_free((gpointer)number);
}
g_variant_unref(tuple);
}
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_hf_agent_LDFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
FIND_PROGRAM(DBUS_BINDING_TOOL NAMES dbus-binding-tool)
EXEC_PROGRAM("${DBUS_BINDING_TOOL}"
GError *error = NULL;
DBG("Starting Bluetooth MAP agent");
- g_type_init();
-
g_mainloop = g_main_loop_new(NULL, FALSE);
if (g_mainloop == NULL) {
FOREACH(flag ${pkgs_pb_agent_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
FIND_PROGRAM(DBUS_BINDING_TOOL NAMES dbus-binding-tool)
EXEC_PROGRAM("${DBUS_BINDING_TOOL}"
LAST_SIGNAL
};
+static gchar *bluetooth_pb_agent_folder_list[] = {
+ "/telecom/pb",
+ "/telecom/ich",
+ "/telecom/och",
+ "/telecom/mch",
+ "/telecom/cch",
+#ifdef PBAP_SIM_ENABLE
+ "/SIM1/telecom/pb",
+#endif
+ NULL
+};
+
GType bluetooth_pb_agent_get_type(void);
#define BLUETOOTH_PB_TYPE_AGENT (bluetooth_pb_agent_get_type())
struct sigaction sa;
DBG("Starting Bluetooth PBAP agent");
- g_type_init();
-
mainloop = g_main_loop_new(NULL, FALSE);
if (mainloop == NULL) {
ERR("Couldn't create GMainLoop\n");
#define FN_END
#endif
-static gchar *bluetooth_pb_agent_folder_list[] = {
- "/telecom/pb",
- "/telecom/ich",
- "/telecom/och",
- "/telecom/mch",
- "/telecom/cch",
-#ifdef PBAP_SIM_ENABLE
- "/SIM1/telecom/pb",
-#endif
- NULL
-};
-
typedef enum {
TELECOM_PB = 0,
TELECOM_ICH,
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint i;
gint status;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint i;
gint status;
static gchar *__bluetooth_pb_number_from_contact(contacts_record_h contact)
{
FN_START;
- guint count = 0;
+ gint count = 0;
gint status;
gint i;
bool _bt_is_sim_addressbook(const char *addressbook);
+int _bluetooth_get_contact_addressbook(gint person_id);
+
#endif