X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-api%2Fbt-pbap.c;h=1d018f83643b02b826be248a275a1b45799f07f9;hb=593b79876bfe833f9468521f047933f5efe87746;hp=031440c4d209b526b41d3d6a3ca35606ff90e841;hpb=45b67c424f9352ccdce42e96542132ac069ddd2b;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-api/bt-pbap.c b/bt-api/bt-pbap.c old mode 100644 new mode 100755 index 031440c..1d018f8 --- a/bt-api/bt-pbap.c +++ b/bt-api/bt-pbap.c @@ -1,11 +1,5 @@ /* - * Bluetooth-frwk - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hocheol Seo - * Girishashok Joshi - * Chanyeol Park + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +15,9 @@ * */ #include +#if !defined(LIBNOTIFY_SUPPORT) && !defined(LIBNOTIFICATION_SUPPORT) #include +#endif #include "bluetooth-api.h" #include "bt-internal-types.h" @@ -33,8 +29,7 @@ static char is_pbap_initialized = FALSE; #define BT_CHECK_PBAP_INITIALIZED(func) \ - if (is_pbap_initialized == FALSE) \ - { \ + if (is_pbap_initialized == FALSE) { \ BT_ERR("BT PBAP Client is not initiatized"); \ func BLUETOOTH_ERROR_NOT_INITIALIZED; \ } \ @@ -45,7 +40,6 @@ BT_EXPORT_API int bluetooth_pbap_init(void) bt_user_info_t *user_info; int ret; - BT_CHECK_ENABLED(return); if (is_pbap_initialized) return BLUETOOTH_ERROR_ALREADY_INITIALIZED; @@ -63,7 +57,7 @@ BT_EXPORT_API int bluetooth_pbap_init(void) BT_EXPORT_API int bluetooth_pbap_deinit(void) { int ret; - BT_CHECK_ENABLED(return); + BT_CHECK_PBAP_INITIALIZED(return); ret = _bt_unregister_event(BT_PBAP_CLIENT_EVENT);