1f1b34e8dSMatthias Ringwald /* 2f1b34e8dSMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 3f1b34e8dSMatthias Ringwald * 4f1b34e8dSMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5f1b34e8dSMatthias Ringwald * modification, are permitted provided that the following conditions 6f1b34e8dSMatthias Ringwald * are met: 7f1b34e8dSMatthias Ringwald * 8f1b34e8dSMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9f1b34e8dSMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10f1b34e8dSMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11f1b34e8dSMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12f1b34e8dSMatthias Ringwald * documentation and/or other materials provided with the distribution. 13f1b34e8dSMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14f1b34e8dSMatthias Ringwald * contributors may be used to endorse or promote products derived 15f1b34e8dSMatthias Ringwald * from this software without specific prior written permission. 16f1b34e8dSMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17f1b34e8dSMatthias Ringwald * personal benefit and not for any commercial purpose or for 18f1b34e8dSMatthias Ringwald * monetary gain. 19f1b34e8dSMatthias Ringwald * 20f1b34e8dSMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21f1b34e8dSMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22f1b34e8dSMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 232fca4dadSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 242fca4dadSMilanka Ringwald * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25f1b34e8dSMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26f1b34e8dSMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27f1b34e8dSMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28f1b34e8dSMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29f1b34e8dSMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30f1b34e8dSMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31f1b34e8dSMatthias Ringwald * SUCH DAMAGE. 32f1b34e8dSMatthias Ringwald * 33f1b34e8dSMatthias Ringwald * Please inquire about commercial licensing options at 34f1b34e8dSMatthias Ringwald * [email protected] 35f1b34e8dSMatthias Ringwald * 36f1b34e8dSMatthias Ringwald */ 37f1b34e8dSMatthias Ringwald 38fe5a6c4eSMilanka Ringwald /** 39fe5a6c4eSMilanka Ringwald * @title PBAP Client 40fe5a6c4eSMilanka Ringwald * 41fe5a6c4eSMilanka Ringwald */ 42fe5a6c4eSMilanka Ringwald 4380e33422SMatthias Ringwald #ifndef PBAP_CLIENT_H 4480e33422SMatthias Ringwald #define PBAP_CLIENT_H 45f1b34e8dSMatthias Ringwald 46f1b34e8dSMatthias Ringwald #if defined __cplusplus 47f1b34e8dSMatthias Ringwald extern "C" { 48f1b34e8dSMatthias Ringwald #endif 49f1b34e8dSMatthias Ringwald 50f1b34e8dSMatthias Ringwald #include "btstack_config.h" 51f1b34e8dSMatthias Ringwald #include <stdint.h> 52f1b34e8dSMatthias Ringwald 5383f1bca0SMatthias Ringwald // max len of phone number used for lookup in pbap_lookup_by_number 5483f1bca0SMatthias Ringwald #define PBAP_MAX_PHONE_NUMBER_LEN 32 5583f1bca0SMatthias Ringwald 5683f1bca0SMatthias Ringwald // max len of name reported in PBAP_SUBEVENT_CARD_RESULT 5783f1bca0SMatthias Ringwald #define PBAP_MAX_NAME_LEN 32 5883f1bca0SMatthias Ringwald // max len of vcard handle reported in PBAP_SUBEVENT_CARD_RESULT 5983f1bca0SMatthias Ringwald #define PBAP_MAX_HANDLE_LEN 16 6083f1bca0SMatthias Ringwald 61f1b34e8dSMatthias Ringwald /* API_START */ 62f1b34e8dSMatthias Ringwald 6360dfc259SMatthias Ringwald // PBAP Supported Features 6460dfc259SMatthias Ringwald 6560dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_DOWNLOAD (1<<0) 6660dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_BROWSING (1<<1) 6760dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_DATABASE_IDENTIFIER (1<<2) 6860dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_FOLDER_VERSION_COUNTERS (1<<3) 6960dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_VCARD_SELECTING (1<<4) 7060dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_ENHANCED_MISSED_CALLS (1<<5) 7160dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_X_BT_UCI_VCARD_PROPERTY (1<<6) 7260dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_X_BT_UID_VCARD_PROPERTY (1<<7) 7360dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_CONTACT_REFERENCING (1<<8) 7460dfc259SMatthias Ringwald #define PBAP_SUPPORTED_FEATURES_DEFAULT_CONTACT_IMAGE_FORMAT (1<<9) 7560dfc259SMatthias Ringwald 7660dfc259SMatthias Ringwald // PBAP Property Mask - also used for vCardSelector 7760dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_VERSION (1<< 0) // vCard Version 7860dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_FN (1<< 1) // Formatted Name 7960dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_N (1<< 2) // Structured Presentation of Name 8060dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_PHOTO (1<< 3) // Associated Image or Photo 8160dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_BDAY (1<< 4) // Birthday 8260dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_ADR (1<< 5) // Delivery Address 8360dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_LABEL (1<< 6) // Delivery 8460dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_TEL (1<< 7) // Telephone Number 8560dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_EMAIL (1<< 8) // Electronic Mail Address 8660dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_MAILER (1<< 9) // Electronic Mail 8760dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_TZ (1<<10) // Time Zone 8860dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_GEO (1<<11) // Geographic Position 8960dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_TITLE (1<<12) // Job 9060dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_ROLE (1<<13) // Role within the Organization 9160dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_LOGO (1<<14) // Organization Logo 9260dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_AGENT (1<<15) // vCard of Person Representing 9360dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_ORG (1<<16) // Name of Organization 9460dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_NOTE (1<<17) // Comments 9560dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_REV (1<<18) // Revision 9660dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_SOUND (1<<19) // Pronunciation of Name 9760dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_URL (1<<20) // Uniform Resource Locator 9860dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_UID (1<<21) // Unique ID 9960dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_KEY (1<<22) // Public Encryption Key 10060dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_NICKNAME (1<<23) // Nickname 10160dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_CATEGORIES (1<<24) // Categories 10260dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_PROID (1<<25) // Product ID 10360dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_CLASS (1<<26) // Class information 10460dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_SORT_STRING (1<<27) // String used for sorting operations 10560dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_X_IRMC_CALL_DATETIME (1<<28) // Time stamp 10660dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_X_BT_SPEEDDIALKEY (1<<29) // Speed-dial shortcut 10760dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_X_BT_UCI (1<<30) // Uniform Caller Identifier 10860dfc259SMatthias Ringwald #define PBAP_PROPERTY_MASK_X_BT_UID (1<<31) // Bluetooth Contact Unique Identifier 10960dfc259SMatthias Ringwald 11060dfc259SMatthias Ringwald // PBAP vCardSelectorOperator 11160dfc259SMatthias Ringwald #define PBAP_VCARD_SELECTOR_OPERATOR_OR 0 11260dfc259SMatthias Ringwald #define PBAP_VCARD_SELECTOR_OPERATOR_AND 1 11360dfc259SMatthias Ringwald 114f1b34e8dSMatthias Ringwald /** 115f1b34e8dSMatthias Ringwald * Setup PhoneBook Access Client 116f1b34e8dSMatthias Ringwald */ 117f1b34e8dSMatthias Ringwald void pbap_client_init(void); 118f1b34e8dSMatthias Ringwald 119f1b34e8dSMatthias Ringwald /** 1201c7aea60SMilanka Ringwald * @brief Create PBAP connection to a Phone Book Server (PSE) server on a remote device. 1211c7aea60SMilanka Ringwald * If the server requires authentication, a PBAP_SUBEVENT_AUTHENTICATION_REQUEST is emitted, which 1221c7aea60SMilanka Ringwald * can be answered with pbap_authentication_password(..). 1231c7aea60SMilanka Ringwald * The status of PBAP connection establishment is reported via PBAP_SUBEVENT_CONNECTION_OPENED event, 1241c7aea60SMilanka Ringwald * i.e. on success status field is set to ERROR_CODE_SUCCESS. 1251c7aea60SMilanka Ringwald * 126f1b34e8dSMatthias Ringwald * @param handler 127f1b34e8dSMatthias Ringwald * @param addr 128f1b34e8dSMatthias Ringwald * @param out_cid to use for further commands 1291c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_MEMORY_ALLOC_FAILED if PBAP or GOEP connection already exists. 130f1b34e8dSMatthias Ringwald */ 131f1b34e8dSMatthias Ringwald uint8_t pbap_connect(btstack_packet_handler_t handler, bd_addr_t addr, uint16_t * out_cid); 132f1b34e8dSMatthias Ringwald 133f1b34e8dSMatthias Ringwald /** 1341c7aea60SMilanka Ringwald * @brief Provide password for OBEX Authentication after receiving PBAP_SUBEVENT_AUTHENTICATION_REQUEST. 1351c7aea60SMilanka Ringwald * The status of PBAP connection establishment is reported via PBAP_SUBEVENT_CONNECTION_OPENED event, 1361c7aea60SMilanka Ringwald * i.e. on success status field is set to ERROR_CODE_SUCCESS. 1371c7aea60SMilanka Ringwald * 138c1bc0b8eSMatthias Ringwald * @param pbap_cid 139c1bc0b8eSMatthias Ringwald * @param password (null terminated string) - not copied, needs to stay valid until connection completed 1401c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 141c1bc0b8eSMatthias Ringwald */ 142c1bc0b8eSMatthias Ringwald uint8_t pbap_authentication_password(uint16_t pbap_cid, const char * password); 143c1bc0b8eSMatthias Ringwald 144c1bc0b8eSMatthias Ringwald /** 145f1b34e8dSMatthias Ringwald * @brief Disconnects PBAP connection with given identifier. 1461c7aea60SMilanka Ringwald * Event PBAP_SUBEVENT_CONNECTION_CLOSED indicates that PBAP connection is closed. 1471c7aea60SMilanka Ringwald * 148f1b34e8dSMatthias Ringwald * @param pbap_cid 1491c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 150f1b34e8dSMatthias Ringwald */ 151f1b34e8dSMatthias Ringwald uint8_t pbap_disconnect(uint16_t pbap_cid); 152f1b34e8dSMatthias Ringwald 153f1b34e8dSMatthias Ringwald /** 1541c7aea60SMilanka Ringwald * @brief Set current folder on PSE. The status is reported via PBAP_SUBEVENT_OPERATION_COMPLETED event. 1551c7aea60SMilanka Ringwald * 156f1b34e8dSMatthias Ringwald * @param pbap_cid 157f1b34e8dSMatthias Ringwald * @param path - note: path is not copied 1581c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 159f1b34e8dSMatthias Ringwald */ 160f1b34e8dSMatthias Ringwald uint8_t pbap_set_phonebook(uint16_t pbap_cid, const char * path); 161f1b34e8dSMatthias Ringwald 162f1b34e8dSMatthias Ringwald /** 1631c7aea60SMilanka Ringwald * @brief Set vCard Selector for get/pull phonebook. No event is emitted. 1641c7aea60SMilanka Ringwald * 1653127f224SMatthias Ringwald * @param pbap_cid 1663127f224SMatthias Ringwald * @param vcard_selector - combination of PBAP_PROPERTY_MASK_* properties 1671c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 1683127f224SMatthias Ringwald */ 1693127f224SMatthias Ringwald uint8_t pbap_set_vcard_selector(uint16_t pbap_cid, uint32_t vcard_selector); 1703127f224SMatthias Ringwald 1713127f224SMatthias Ringwald /** 1721c7aea60SMilanka Ringwald * @brief Set vCard Selector for get/pull phonebook. No event is emitted. 1731c7aea60SMilanka Ringwald * 1743127f224SMatthias Ringwald * @param pbap_cid 1753127f224SMatthias Ringwald * @param vcard_selector_operator - PBAP_VCARD_SELECTOR_OPERATOR_OR (default) or PBAP_VCARD_SELECTOR_OPERATOR_AND 1761c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 1773127f224SMatthias Ringwald */ 1783127f224SMatthias Ringwald uint8_t pbap_set_vcard_selector_operator(uint16_t pbap_cid, int vcard_selector_operator); 1793127f224SMatthias Ringwald 1803127f224SMatthias Ringwald /** 181*e9b4d967SMatthias Ringwald * @brief Set Property Selector. No event is emitted. 182*e9b4d967SMatthias Ringwald * @param pbap_cid 183*e9b4d967SMatthias Ringwald * @param property_selector - combination of PBAP_PROPERTY_MASK_* properties 184*e9b4d967SMatthias Ringwald * @return 185*e9b4d967SMatthias Ringwald */ 186*e9b4d967SMatthias Ringwald uint8_t pbap_set_property_selector(uint16_t pbap_cid, uint32_t property_selector); 187*e9b4d967SMatthias Ringwald 188*e9b4d967SMatthias Ringwald /** 1891c7aea60SMilanka Ringwald * @brief Get size of phone book from PSE. The result is reported via PBAP_SUBEVENT_PHONEBOOK_SIZE event. 1901c7aea60SMilanka Ringwald * 1913a7447a3SMatthias Ringwald * @param pbap_cid 1928c94c044SMatthias Ringwald * @param path - note: path is not copied, common path 'telecom/pb.vcf' 1931c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 1943a7447a3SMatthias Ringwald */ 1958c94c044SMatthias Ringwald uint8_t pbap_get_phonebook_size(uint16_t pbap_cid, const char * path); 1963a7447a3SMatthias Ringwald 1973a7447a3SMatthias Ringwald /** 1981c7aea60SMilanka Ringwald * @brief Pull phone book from PSE. The result is reported via registered packet handler (see pbap_connect function), 1991c7aea60SMilanka Ringwald * with packet type set to PBAP_DATA_PACKET. Event PBAP_SUBEVENT_OPERATION_COMPLETED marks the end of the phone book. 2001c7aea60SMilanka Ringwald * 201f1b34e8dSMatthias Ringwald * @param pbap_cid 2028c94c044SMatthias Ringwald * @param path - note: path is not copied, common path 'telecom/pb.vcf' 2031c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 204f1b34e8dSMatthias Ringwald */ 2058c94c044SMatthias Ringwald uint8_t pbap_pull_phonebook(uint16_t pbap_cid, const char * path); 206e03b79abSMatthias Ringwald 207e03b79abSMatthias Ringwald /** 2081c7aea60SMilanka Ringwald * @brief Pull vCard listing. vCard data is emitted via PBAP_SUBEVENT_CARD_RESULT event. 2091c7aea60SMilanka Ringwald * Event PBAP_SUBEVENT_OPERATION_COMPLETED marks the end of vCard listing. 2101c7aea60SMilanka Ringwald * 2114687d289SMatthias Ringwald * @param pbap_cid 2124687d289SMatthias Ringwald * @param path 2131c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 2144687d289SMatthias Ringwald */ 2154687d289SMatthias Ringwald uint8_t pbap_pull_vcard_listing(uint16_t pbap_cid, const char * path); 2164687d289SMatthias Ringwald 2174687d289SMatthias Ringwald /** 2181c7aea60SMilanka Ringwald * @brief Pull vCard entry. The result is reported via callback (see pbap_connect function), 2191c7aea60SMilanka Ringwald * with packet type set to PBAP_DATA_PACKET. 2201c7aea60SMilanka Ringwald * Event PBAP_SUBEVENT_OPERATION_COMPLETED marks the end of the vCard entry. 2211c7aea60SMilanka Ringwald * 22216ad3745SMatthias Ringwald * @param pbap_cid 22316ad3745SMatthias Ringwald * @param path 2241c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 22516ad3745SMatthias Ringwald */ 22616ad3745SMatthias Ringwald uint8_t pbap_pull_vcard_entry(uint16_t pbap_cid, const char * path); 22716ad3745SMatthias Ringwald 22816ad3745SMatthias Ringwald /** 2291c7aea60SMilanka Ringwald * @brief Lookup contact(s) by phone number. vCard data is emitted via PBAP_SUBEVENT_CARD_RESULT event. 2301c7aea60SMilanka Ringwald * Event PBAP_SUBEVENT_OPERATION_COMPLETED marks the end of the lookup. 2311c7aea60SMilanka Ringwald * 232e03b79abSMatthias Ringwald * @param pbap_cid 233e03b79abSMatthias Ringwald * @param phone_number 2341c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 235e03b79abSMatthias Ringwald */ 236e03b79abSMatthias Ringwald uint8_t pbap_lookup_by_number(uint16_t pbap_cid, const char * phone_number); 237f1b34e8dSMatthias Ringwald 238d4436ef5SMatthias Ringwald /** 2391c7aea60SMilanka Ringwald * @brief Abort current operation. No event is emitted. 2401c7aea60SMilanka Ringwald * 2419eb7827dSMatthias Ringwald * @param pbap_cid 2421c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 2439eb7827dSMatthias Ringwald */ 2449eb7827dSMatthias Ringwald uint8_t pbap_abort(uint16_t pbap_cid); 2459eb7827dSMatthias Ringwald 2469eb7827dSMatthias Ringwald 2479eb7827dSMatthias Ringwald /** 2481c7aea60SMilanka Ringwald * @brief Set flow control mode - default is off. No event is emitted. 249d4436ef5SMatthias Ringwald * @note When enabled, pbap_next_packet needs to be called after a packet was processed to receive the next one 2501c7aea60SMilanka Ringwald * 2518854a89dSMatthias Ringwald * @param pbap_cid 2521c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 253d4436ef5SMatthias Ringwald */ 2548854a89dSMatthias Ringwald uint8_t pbap_set_flow_control_mode(uint16_t pbap_cid, int enable); 255d4436ef5SMatthias Ringwald 256d4436ef5SMatthias Ringwald /** 2571c7aea60SMilanka Ringwald * @brief Trigger next packet from PSE when Flow Control Mode is enabled. 258d4436ef5SMatthias Ringwald * @param pbap_cid 2591c7aea60SMilanka Ringwald * @return status ERROR_CODE_SUCCESS on success, otherwise BTSTACK_BUSY if in a wrong state. 260d4436ef5SMatthias Ringwald */ 261d4436ef5SMatthias Ringwald uint8_t pbap_next_packet(uint16_t pbap_cid); 262d4436ef5SMatthias Ringwald 2631d0ae3baSMatthias Ringwald /** 2641d0ae3baSMatthias Ringwald * @brief De-Init PBAP Client 2651d0ae3baSMatthias Ringwald */ 2661d0ae3baSMatthias Ringwald void pbap_client_deinit(void); 267d4436ef5SMatthias Ringwald 268f1b34e8dSMatthias Ringwald /* API_END */ 269f1b34e8dSMatthias Ringwald 270f1b34e8dSMatthias Ringwald #if defined __cplusplus 271f1b34e8dSMatthias Ringwald } 272f1b34e8dSMatthias Ringwald #endif 273f1b34e8dSMatthias Ringwald #endif 274