1f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani/* Copyright (c) 2011 Code Aurora Forum. All rights reserved.
2f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *
3f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * Redistribution and use in source and binary forms, with or without
4f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * modification, are permitted provided that the following conditions are
5f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * met:
6f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *     * Redistributions of source code must retain the above copyright
7f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *       notice, this list of conditions and the following disclaimer.
8f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *     * Redistributions in binary form must reproduce the above
9f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *       copyright notice, this list of conditions and the following
10f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *       disclaimer in the documentation and/or other materials provided
11f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *       with the distribution.
12f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *     * Neither the name of Code Aurora Forum, Inc. nor the names of its
13f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *       contributors may be used to endorse or promote products derived
14f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *       from this software without specific prior written permission.
15f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *
16f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani *
28f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani */
29f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
30f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#ifndef LOC_API_LOG_H
31f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#define LOC_API_LOG_H
32f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
33f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#ifdef __cplusplus
34f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern "C"
35f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani{
36f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#endif
37f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
38f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#include <ctype.h>
39f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#include "loc_api_rpcgen_common_rpc.h"
40f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
41f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern int loc_callback_log(
42f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani      rpc_loc_event_mask_type               loc_event,              /* event mask           */
43f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani      const rpc_loc_event_payload_u_type*   loc_event_payload       /* payload              */
44f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani);
45f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
46f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_event_atl_open_name(rpc_loc_server_request_e_type loc_event_atl_open);
47f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_event_name(rpc_loc_event_mask_type loc_event_mask);
48f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_ioctl_type_name(rpc_loc_ioctl_e_type ioctl_type);
49f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_ioctl_status_name(uint32 status);
50f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_sess_status_name(rpc_loc_session_status_e_type status);
51f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_engine_state_name(rpc_loc_engine_state_e_type state);
52f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_fix_session_state_name(rpc_loc_fix_session_state_e_type state);
53f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern const char* loc_get_rpc_reset_event_name(enum rpc_reset_event event);
54f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
55f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#ifdef __cplusplus
56f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani}
57f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#endif
58f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani
59f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#endif /* LOC_API_LOG_H */
60