Put defines near the top

This commit is contained in:
Denis Kenzior 2009-08-04 10:15:33 -05:00
parent d145a47108
commit 2ce16d2b0c
1 changed files with 5 additions and 5 deletions

View File

@ -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)
{