loc_api: rearrange RPC glue to allow having multiple versions of the API.
The API version can be chosen by specifying the AMSS version in the board config by setting the BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION variable. The existing GPS_LOC_API_HARDWARE has been renamed BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE Change-Id: I25aa313d7f291b874d52dfb7edf151e280061438 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
3c865ec2f9
commit
fba22d5c62
23 changed files with 62 additions and 198 deletions
|
@ -6,6 +6,6 @@
|
|||
# · 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.
|
||||
# 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.
|
||||
|
||||
ifneq ($(GPS_LOC_API_HARDWARE),)
|
||||
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
|
||||
include $(call all-subdir-makefiles)
|
||||
endif
|
||||
|
|
|
@ -11,9 +11,8 @@ ifneq ($(BUILD_TINY_ANDROID),true)
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
RPC_INC:=rpc_inc
|
||||
|
||||
AMSS_VERSION:=6356
|
||||
AMSS_VERSION:=$(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION)
|
||||
RPC_INC:=inc-$(AMSS_VERSION)
|
||||
|
||||
generated_files:= \
|
||||
gen-$(AMSS_VERSION)/loc_api_clnt.c \
|
||||
|
@ -21,8 +20,8 @@ generated_files:= \
|
|||
gen-$(AMSS_VERSION)/loc_api_common_xdr.c \
|
||||
gen-$(AMSS_VERSION)/loc_api_cb_svc.c \
|
||||
gen-$(AMSS_VERSION)/loc_api_xdr.c \
|
||||
gen-$(AMSS_VERSION)/loc_api_fixup.c \
|
||||
src/loc_api_rpc_glue.c \
|
||||
gen-$(AMSS_VERSION)/loc_api_fixup.c \
|
||||
gen-$(AMSS_VERSION)/loc_api_rpc_glue.c \
|
||||
src/loc_apicb_appinit.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(generated_files)
|
||||
|
@ -31,7 +30,6 @@ LOCAL_SRC_FILES:= $(generated_files)
|
|||
# src/loc_api_cb_server.c
|
||||
|
||||
LOCAL_CFLAGS:=-fno-short-enums
|
||||
# LOCAL_CFLAGS+=-include $(RPC_INC)/commondefs.h
|
||||
LOCAL_CFLAGS+=-include $(RPC_INC)/loc_api_common.h
|
||||
LOCAL_CFLAGS+=-DDEBUG
|
||||
# LOCAL_CFLAGS+=-DDEBUG -DVERBOSE
|
||||
|
@ -43,18 +41,19 @@ LOCAL_STATIC_LIBRARIES:= libcommondefs-rpc
|
|||
|
||||
LOCAL_PRELINK_MODULE:= false
|
||||
|
||||
LOCAL_COPY_HEADERS_TO:= libloc_api-rpc/$(RPC_INC)
|
||||
LOCAL_COPY_HEADERS_TO:= libloc_api-rpc/inc
|
||||
LOCAL_COPY_HEADERS:= \
|
||||
$(RPC_INC)/debug.h \
|
||||
$(RPC_INC)/loc_api_cb.h \
|
||||
$(RPC_INC)/loc_api_common.h \
|
||||
$(RPC_INC)/loc_api.h \
|
||||
$(RPC_INC)/loc_api_fixup.h \
|
||||
$(RPC_INC)/loc_api_rpc_glue.h \
|
||||
$(RPC_INC)/loc_apicb_appinit.h
|
||||
$(RPC_INC)/loc_apicb_appinit.h \
|
||||
inc/debug.h \
|
||||
inc/loc_api_rpc_glue.h
|
||||
|
||||
LOCAL_C_INCLUDES:= \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/inc \
|
||||
$(LOCAL_PATH)/$(RPC_INC) \
|
||||
$(TARGET_OUT_HEADERS)/libcommondefs-rpc \
|
||||
$(TARGET_OUT_HEADERS)/librpc
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
CLIENTS:= loc_api
|
||||
SERVERS:= loc_api_cb
|
||||
COMMON:= loc_api_common
|
||||
RPC_INC:=rpc_inc
|
||||
RPC_INC:= inc-$(AMSS_VERSION)
|
||||
|
||||
all: $(CLIENTS) $(SERVERS) $(COMMON) fixup
|
||||
|
||||
|
@ -28,7 +28,7 @@ $(SERVERS)::
|
|||
|
||||
fixup:
|
||||
mv ../$(RPC_INC)/loc_api_common.h ../$(RPC_INC)/loc_api_common.h.bak
|
||||
sed ../$(RPC_INC)/loc_api_common.h.bak -e "/#include <rpc/a#include \"$(RPC_INC)/loc_api_fixup.h\"" > ../$(RPC_INC)/loc_api_common.h
|
||||
sed ../$(RPC_INC)/loc_api_common.h.bak -e "/#include <rpc/a#include \"loc_api_fixup.h\"" > ../$(RPC_INC)/loc_api_common.h
|
||||
rm -f ../$(RPC_INC)/loc_api_common.h.bak
|
||||
|
||||
clean:
|
19
loc_api/libloc_api-rpc/gen-6356/loc_api_cb_svc.c → loc_api/libloc_api-rpc/gen-3200/loc_api_cb_svc.c
Executable file → Normal file
19
loc_api/libloc_api-rpc/gen-6356/loc_api_cb_svc.c → loc_api/libloc_api-rpc/gen-3200/loc_api_cb_svc.c
Executable file → Normal file
|
@ -1,21 +1,4 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
32
loc_api/libloc_api-rpc/gen-3200/loc_api_cb_xdr.c
Normal file
32
loc_api/libloc_api-rpc/gen-3200/loc_api_cb_xdr.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
||||
#include "loc_api_cb.h"
|
||||
|
||||
bool_t
|
||||
xdr_rpc_loc_event_cb_f_type_args (XDR *xdrs, rpc_loc_event_cb_f_type_args *objp)
|
||||
{
|
||||
register int32_t *buf;
|
||||
|
||||
if (!xdr_rpc_uint32 (xdrs, &objp->cb_id))
|
||||
return FALSE;
|
||||
if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->loc_handle))
|
||||
return FALSE;
|
||||
if (!xdr_rpc_loc_event_mask_type (xdrs, &objp->loc_event))
|
||||
return FALSE;
|
||||
if (!xdr_pointer (xdrs, (char **)&objp->loc_event_payload, sizeof (rpc_loc_event_payload_u_type), (xdrproc_t) xdr_rpc_loc_event_payload_u_type))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool_t
|
||||
xdr_rpc_loc_event_cb_f_type_rets (XDR *xdrs, rpc_loc_event_cb_f_type_rets *objp)
|
||||
{
|
||||
register int32_t *buf;
|
||||
|
||||
if (!xdr_rpc_int32 (xdrs, &objp->loc_event_cb_f_type_result))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
17
loc_api/libloc_api-rpc/gen-6356/loc_api_clnt.c → loc_api/libloc_api-rpc/gen-3200/loc_api_clnt.c
Executable file → Normal file
17
loc_api/libloc_api-rpc/gen-6356/loc_api_clnt.c → loc_api/libloc_api-rpc/gen-3200/loc_api_clnt.c
Executable file → Normal file
|
@ -1,20 +1,3 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
17
loc_api/libloc_api-rpc/gen-6356/loc_api_common_xdr.c → loc_api/libloc_api-rpc/gen-3200/loc_api_common_xdr.c
Executable file → Normal file
17
loc_api/libloc_api-rpc/gen-6356/loc_api_common_xdr.c → loc_api/libloc_api-rpc/gen-3200/loc_api_common_xdr.c
Executable file → Normal file
|
@ -1,20 +1,3 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
|
@ -57,10 +57,10 @@ when who what, where, why
|
|||
#include <rpc/clnt.h>
|
||||
|
||||
/* Include RPC headers */
|
||||
#include "rpc_inc/loc_api_rpc_glue.h"
|
||||
#include "loc_api_rpc_glue.h"
|
||||
|
||||
/* Callback init */
|
||||
#include "rpc_inc/loc_apicb_appinit.h"
|
||||
#include "loc_apicb_appinit.h"
|
||||
|
||||
/* Logging */
|
||||
#define LOG_TAG "lib_api_rpc_glue"
|
17
loc_api/libloc_api-rpc/gen-6356/loc_api_xdr.c → loc_api/libloc_api-rpc/gen-3200/loc_api_xdr.c
Executable file → Normal file
17
loc_api/libloc_api-rpc/gen-6356/loc_api_xdr.c → loc_api/libloc_api-rpc/gen-3200/loc_api_xdr.c
Executable file → Normal file
|
@ -1,20 +1,3 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
|
@ -1,49 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
||||
#include "loc_api_cb.h"
|
||||
|
||||
bool_t
|
||||
xdr_rpc_loc_event_cb_f_type_args (XDR *xdrs, rpc_loc_event_cb_f_type_args *objp)
|
||||
{
|
||||
register int32_t *buf;
|
||||
|
||||
if (!xdr_rpc_uint32 (xdrs, &objp->cb_id))
|
||||
return FALSE;
|
||||
if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->loc_handle))
|
||||
return FALSE;
|
||||
if (!xdr_rpc_loc_event_mask_type (xdrs, &objp->loc_event))
|
||||
return FALSE;
|
||||
if (!xdr_pointer (xdrs, (char **)&objp->loc_event_payload, sizeof (rpc_loc_event_payload_u_type), (xdrproc_t) xdr_rpc_loc_event_payload_u_type))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool_t
|
||||
xdr_rpc_loc_event_cb_f_type_rets (XDR *xdrs, rpc_loc_event_cb_f_type_rets *objp)
|
||||
{
|
||||
register int32_t *buf;
|
||||
|
||||
if (!xdr_rpc_int32 (xdrs, &objp->loc_event_cb_f_type_result))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
18
loc_api/libloc_api-rpc/rpc_inc/loc_api.h → loc_api/libloc_api-rpc/inc-3200/loc_api.h
Executable file → Normal file
18
loc_api/libloc_api-rpc/rpc_inc/loc_api.h → loc_api/libloc_api-rpc/inc-3200/loc_api.h
Executable file → Normal file
|
@ -1,20 +1,4 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
/*
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
17
loc_api/libloc_api-rpc/rpc_inc/loc_api_cb.h → loc_api/libloc_api-rpc/inc-3200/loc_api_cb.h
Executable file → Normal file
17
loc_api/libloc_api-rpc/rpc_inc/loc_api_cb.h → loc_api/libloc_api-rpc/inc-3200/loc_api_cb.h
Executable file → Normal file
|
@ -1,20 +1,3 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
20
loc_api/libloc_api-rpc/rpc_inc/loc_api_common.h → loc_api/libloc_api-rpc/inc-3200/loc_api_common.h
Executable file → Normal file
20
loc_api/libloc_api-rpc/rpc_inc/loc_api_common.h → loc_api/libloc_api-rpc/inc-3200/loc_api_common.h
Executable file → Normal file
|
@ -1,20 +1,4 @@
|
|||
/*
|
||||
Copyright (c) 2009, QUALCOMM USA, INC.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
· Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
· 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.
|
||||
|
||||
· 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.
|
||||
|
||||
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.
|
||||
|
||||
*/
|
||||
/*
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
@ -23,7 +7,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
#define _LOC_API_COMMON_H_RPCGEN
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
#include "rpc_inc/loc_api_fixup.h"
|
||||
#include "loc_api_fixup.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
|
@ -41,10 +41,10 @@ $Id: //source/qcom/qct/modem/gps/cgps/dev/locationmiddleware/locapi/app-linux/so
|
|||
#define LOC_API_RPC_GLUE_H
|
||||
|
||||
/* Include RPC headers */
|
||||
#include "rpc_inc/loc_api_common.h"
|
||||
#include "rpc_inc/loc_api.h"
|
||||
#include "rpc_inc/loc_api_cb.h"
|
||||
#include "rpc_inc/loc_api_fixup.h"
|
||||
#include "loc_api_common.h"
|
||||
#include "loc_api.h"
|
||||
#include "loc_api_cb.h"
|
||||
#include "loc_api_fixup.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
|
@ -15,10 +15,10 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
#include "rpc/rpc.h"
|
||||
#include "rpc_inc/loc_api_common.h"
|
||||
#include "rpc_inc/loc_api.h"
|
||||
#include "rpc_inc/loc_api_cb.h"
|
||||
#include "rpc_inc/loc_api_fixup.h"
|
||||
#include "loc_api_common.h"
|
||||
#include "loc_api.h"
|
||||
#include "loc_api_cb.h"
|
||||
#include "loc_api_fixup.h"
|
||||
|
||||
#include "loc_apicb_appinit.h"
|
||||
|
||||
|
|
|
@ -6,12 +6,10 @@
|
|||
#· 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.
|
||||
#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.
|
||||
|
||||
AMSS_VERSION:=6356
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := gps.$(GPS_LOC_API_HARDWARE)
|
||||
LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE)
|
||||
|
||||
LOCAL_STATIC_LIBRARIES:= \
|
||||
libloc_api-rpc
|
||||
|
@ -29,11 +27,12 @@ LOCAL_SRC_FILES += \
|
|||
gps.c
|
||||
|
||||
LOCAL_CFLAGS += \
|
||||
-fno-short-enums
|
||||
-fno-short-enums \
|
||||
-DAMSS_VERSION=$(BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION)
|
||||
|
||||
LOCAL_C_INCLUDES:= \
|
||||
$(TARGET_OUT_HEADERS)/libloc_api-rpc \
|
||||
$(TARGET_OUT_HEADERS)/libloc_api-rpc/rpc_inc \
|
||||
$(TARGET_OUT_HEADERS)/libloc_api-rpc/inc \
|
||||
$(TARGET_OUT_HEADERS)/libcommondefs-rpc/inc \
|
||||
$(TARGET_OUT_HEADERS)/librpc
|
||||
|
||||
|
|
Loading…
Reference in a new issue