1bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo/* Copyright (c) 2011 The Linux Foundation. All rights reserved.
234ee09551764b045fdc02df754157473125edf60Kevin Tang *
334ee09551764b045fdc02df754157473125edf60Kevin Tang * Redistribution and use in source and binary forms, with or without
434ee09551764b045fdc02df754157473125edf60Kevin Tang * modification, are permitted provided that the following conditions are
534ee09551764b045fdc02df754157473125edf60Kevin Tang * met:
634ee09551764b045fdc02df754157473125edf60Kevin Tang *     * Redistributions of source code must retain the above copyright
734ee09551764b045fdc02df754157473125edf60Kevin Tang *       notice, this list of conditions and the following disclaimer.
834ee09551764b045fdc02df754157473125edf60Kevin Tang *     * Redistributions in binary form must reproduce the above
934ee09551764b045fdc02df754157473125edf60Kevin Tang *       copyright notice, this list of conditions and the following
1034ee09551764b045fdc02df754157473125edf60Kevin Tang *       disclaimer in the documentation and/or other materials provided
1134ee09551764b045fdc02df754157473125edf60Kevin Tang *       with the distribution.
12bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo *     * Neither the name of The Linux Foundation nor the names of its
1334ee09551764b045fdc02df754157473125edf60Kevin Tang *       contributors may be used to endorse or promote products derived
1434ee09551764b045fdc02df754157473125edf60Kevin Tang *       from this software without specific prior written permission.
1534ee09551764b045fdc02df754157473125edf60Kevin Tang *
1634ee09551764b045fdc02df754157473125edf60Kevin Tang * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
1734ee09551764b045fdc02df754157473125edf60Kevin Tang * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1834ee09551764b045fdc02df754157473125edf60Kevin Tang * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
1934ee09551764b045fdc02df754157473125edf60Kevin Tang * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
2034ee09551764b045fdc02df754157473125edf60Kevin Tang * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2134ee09551764b045fdc02df754157473125edf60Kevin Tang * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2234ee09551764b045fdc02df754157473125edf60Kevin Tang * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
2334ee09551764b045fdc02df754157473125edf60Kevin Tang * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2434ee09551764b045fdc02df754157473125edf60Kevin Tang * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
2534ee09551764b045fdc02df754157473125edf60Kevin Tang * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
2634ee09551764b045fdc02df754157473125edf60Kevin Tang * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2734ee09551764b045fdc02df754157473125edf60Kevin Tang *
2834ee09551764b045fdc02df754157473125edf60Kevin Tang */
29e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
30bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#ifndef LOC_API_LOG_H
31bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#define LOC_API_LOG_H
32e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
33bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#ifdef __cplusplus
34bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern "C"
35bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo{
36bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#endif
37e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
38bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#include <ctype.h>
39bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#include "loc_api_rpcgen_common_rpc.h"
40e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
41bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern int loc_callback_log(
42bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo      rpc_loc_event_mask_type               loc_event,              /* event mask           */
43bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo      const rpc_loc_event_payload_u_type*   loc_event_payload       /* payload              */
44bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo);
45e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
46bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_event_atl_open_name(rpc_loc_server_request_e_type loc_event_atl_open);
47bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_event_name(rpc_loc_event_mask_type loc_event_mask);
48bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_ioctl_type_name(rpc_loc_ioctl_e_type ioctl_type);
49bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_ioctl_status_name(uint32 status);
50bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_sess_status_name(rpc_loc_session_status_e_type status);
51bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_engine_state_name(rpc_loc_engine_state_e_type state);
52bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_fix_session_state_name(rpc_loc_fix_session_state_e_type state);
53bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russoextern const char* loc_get_rpc_reset_event_name(enum rpc_reset_event event);
54e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
55bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#ifdef __cplusplus
56bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo}
57bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#endif
58e14a6c846df2ce4bb1847e4250991f7c52fd793dDante Russo
59bfff6343845ad9ff062c5fd97bb3b9be1053340eDante Russo#endif /* LOC_API_LOG_H */
60