blob: a938f4b247b6aab6cf72448b150367b643e5fc3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef __SECRIL_SHIM_H__
#define __SECRIL_SHIM_H__
#define LOG_TAG "secril-shim"
#define RIL_SHLIB
#include <dlfcn.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <cutils/compiler.h>
#include <cutils/properties.h>
#include <sys/cdefs.h>
#include <telephony/ril.h>
#include <utils/Log.h>
#define RIL_LIB_PATH "/vendor/lib/libsec-ril.so"
extern const char * requestToString(int request);
/* TODO: Do we really need to redefine these? They aren't in a header... */
typedef struct {
int requestNumber;
void (*dispatchFunction) (void *p, void *pRI);
int(*responseFunction) (void *p, void *response, size_t responselen);
} CommandInfo;
typedef struct RequestInfo {
int32_t token;
CommandInfo *pCI;
struct RequestInfo *p_next;
char cancelled;
char local;
RIL_SOCKET_ID socket_id;
int wasAckSent;
} RequestInfo;
#endif /* __SECRIL_SHIM_H__ */
|