Home | History | Annotate | Download | only in inc
      1 /******************************************************************************
      2   @file:  loc_api_rpc_glue.h
      3   @brief:  Loc API Android glue code header
      4 
      5   DESCRIPTION
      6      Loc API Android glue code header
      7 
      8   INITIALIZATION AND SEQUENCING REQUIREMENTS
      9 
     10   -----------------------------------------------------------------------------
     11 Copyright (c) 2009, QUALCOMM USA, INC.
     12 
     13 All rights reserved.
     14 
     15 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
     16 
     17          Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
     18 
     19          Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
     20 
     21          Neither the name of the QUALCOMM USA, INC.  nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
     22 
     23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     24   -----------------------------------------------------------------------------
     25  ******************************************************************************/
     26 
     27 /*=====================================================================
     28                         EDIT HISTORY FOR MODULE
     29 
     30   This section contains comments describing changes made to the module.
     31   Notice that changes are listed in reverse chronological order.
     32 
     33 when       who      what, where, why
     34 --------   ---      -------------------------------------------------------
     35 03/17/09   dx       Initial version
     36 
     37 $Id: //source/qcom/qct/modem/gps/cgps/dev/locationmiddleware/locapi/app-linux/source/test/loc_api_test/loc_api_cb_log.h#4 $
     38 ======================================================================*/
     39 
     40 #ifndef LOC_API_RPC_GLUE_H
     41 #define LOC_API_RPC_GLUE_H
     42 
     43 /* Include RPC headers */
     44 #include "loc_api_common.h"
     45 #include "loc_api.h"
     46 #include "loc_api_cb.h"
     47 #include "loc_api_fixup.h"
     48 
     49 #ifdef __cplusplus
     50 extern "C"
     51 {
     52 #endif
     53 
     54 /* Boolean */
     55 /* Other data types in comdef.h are defined in rpc stubs, so fix it here */
     56 typedef unsigned char boolean;
     57 #define TRUE 1
     58 #define FALSE 0
     59 
     60 extern int loc_api_glue_init(void);
     61 extern int loc_api_null(void);
     62 
     63 typedef int32 (loc_event_cb_f_type)(
     64       rpc_loc_client_handle_type            loc_handle,             /* handle of the client */
     65       rpc_loc_event_mask_type               loc_event,              /* event mask           */
     66       const rpc_loc_event_payload_u_type*   loc_event_payload       /* payload              */
     67 );
     68 
     69 extern rpc_loc_client_handle_type loc_open(
     70       rpc_loc_event_mask_type       event_reg_mask,
     71       loc_event_cb_f_type       *event_callback
     72 );
     73 
     74 extern int32 loc_close
     75 (
     76       rpc_loc_client_handle_type handle
     77 );
     78 
     79 extern int32 loc_start_fix
     80 (
     81       rpc_loc_client_handle_type handle
     82 );
     83 
     84 extern int32 loc_stop_fix
     85 (
     86       rpc_loc_client_handle_type handle
     87 );
     88 
     89 extern int32 loc_ioctl
     90 (
     91       rpc_loc_client_handle_type           handle,
     92       rpc_loc_ioctl_e_type                 ioctl_type,
     93       rpc_loc_ioctl_data_u_type*           ioctl_data
     94 );
     95 
     96 #ifdef __cplusplus
     97 }
     98 #endif
     99 
    100 #endif /* LOC_API_RPC_GLUE_H */
    101