mirror of git://git.sysmocom.de/ofono
Put defines near the top
This commit is contained in:
parent
d145a47108
commit
2ce16d2b0c
10
src/sim.c
10
src/sim.c
|
@ -52,6 +52,11 @@
|
|||
|
||||
#define SIM_MANAGER_INTERFACE "org.ofono.SimManager"
|
||||
|
||||
#define SIM_CACHE_MODE 0600
|
||||
#define SIM_CACHE_PATH STORAGEDIR "/%s/%04x"
|
||||
#define SIM_CACHE_PATH_LEN(imsilen) (strlen(SIM_CACHE_PATH) - 2 + imsilen)
|
||||
#define SIM_CACHE_HEADER_SIZE 6
|
||||
|
||||
static gboolean sim_op_next(gpointer user_data);
|
||||
static gboolean sim_op_retrieve_next(gpointer user);
|
||||
|
||||
|
@ -313,11 +318,6 @@ static void sim_op_error(struct ofono_modem *modem)
|
|||
g_timeout_add(0, sim_op_next, modem);
|
||||
}
|
||||
|
||||
#define SIM_CACHE_MODE 0600
|
||||
#define SIM_CACHE_PATH STORAGEDIR "/%s/%04x"
|
||||
#define SIM_CACHE_PATH_LEN(imsilen) (strlen(SIM_CACHE_PATH) - 2 + imsilen)
|
||||
#define SIM_CACHE_HEADER_SIZE 6
|
||||
|
||||
static gboolean cache_record(const char *path, int current, int record_len,
|
||||
const unsigned char *data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue