android/socket: Move statics declarations after types definitions

This also makes connections list static.
This commit is contained in:
Szymon Janc 2014-02-18 11:05:21 +01:00 committed by Szymon Janc
parent 70bc1db7a2
commit e323df9475

View File

@ -60,14 +60,6 @@
#define MAP_MSG_TYPE_SMS_CDMA 0x04
#define DEFAULT_MAS_MSG_TYPE (MAP_MSG_TYPE_SMS_GSM | MAP_MSG_TYPE_SMS_CDMA)
static bdaddr_t adapter_addr;
static const uint8_t zero_uuid[16] = { 0 };
/* Simple list of RFCOMM connected sockets */
GList *connections = NULL;
struct rfcomm_sock {
int channel; /* RFCOMM channel */
BtIOSecLevel sec_level;
@ -92,6 +84,13 @@ struct rfcomm_channel {
struct rfcomm_sock *rfsock;
};
static bdaddr_t adapter_addr;
static const uint8_t zero_uuid[16] = { 0 };
/* Simple list of RFCOMM connected sockets */
static GList *connections = NULL;
static struct rfcomm_channel servers[RFCOMM_CHANNEL_MAX + 1];
static int rfsock_set_buffer(struct rfcomm_sock *rfsock)