Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon.
This commit is contained in:
parent
b415390e74
commit
414ff7d98a
6 changed files with 7 additions and 5 deletions
|
|
@ -57,6 +57,8 @@ LOCAL_SRC_FILES := \
|
||||||
|
|
||||||
ifneq ($(USE_SYSDEPS_WIN32),)
|
ifneq ($(USE_SYSDEPS_WIN32),)
|
||||||
LOCAL_SRC_FILES += sysdeps_win32.c
|
LOCAL_SRC_FILES += sysdeps_win32.c
|
||||||
|
else
|
||||||
|
LOCAL_SRC_FILES += fdevent.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LOCAL_CFLAGS += -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter
|
LOCAL_CFLAGS += -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter
|
||||||
|
|
@ -98,6 +100,7 @@ include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
adb.c \
|
adb.c \
|
||||||
|
fdevent.c \
|
||||||
transport.c \
|
transport.c \
|
||||||
transport_local.c \
|
transport_local.c \
|
||||||
transport_usb.c \
|
transport_usb.c \
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <cutils/fdevent.h>
|
#include "fdevent.h"
|
||||||
|
|
||||||
#define TRACE(x...) fprintf(stderr,x)
|
#define TRACE(x...) fprintf(stderr,x)
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include <cutils/fdevent.h>
|
#include "fdevent.h"
|
||||||
#include "adb.h"
|
#include "adb.h"
|
||||||
|
|
||||||
#include <linux/fb.h>
|
#include <linux/fb.h>
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ extern int socket_network_client(const char *host, int port, int type);
|
||||||
extern int socket_loopback_server(int port, int type);
|
extern int socket_loopback_server(int port, int type);
|
||||||
extern int socket_inaddr_any_server(int port, int type);
|
extern int socket_inaddr_any_server(int port, int type);
|
||||||
|
|
||||||
/* normally provided by <cutils/fdevent.h> */
|
/* normally provided by "fdevent.h" */
|
||||||
|
|
||||||
#define FDE_READ 0x0001
|
#define FDE_READ 0x0001
|
||||||
#define FDE_WRITE 0x0002
|
#define FDE_WRITE 0x0002
|
||||||
|
|
@ -252,7 +252,7 @@ static __inline__ int adb_is_absolute_host_path( const char* path )
|
||||||
|
|
||||||
#else /* !_WIN32 a.k.a. Unix */
|
#else /* !_WIN32 a.k.a. Unix */
|
||||||
|
|
||||||
#include <cutils/fdevent.h>
|
#include "fdevent.h"
|
||||||
#include <cutils/sockets.h>
|
#include <cutils/sockets.h>
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
#include <cutils/misc.h>
|
#include <cutils/misc.h>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ else
|
||||||
commonSources += \
|
commonSources += \
|
||||||
mspace.c \
|
mspace.c \
|
||||||
selector.c \
|
selector.c \
|
||||||
fdevent.c \
|
|
||||||
tztime.c \
|
tztime.c \
|
||||||
tzstrftime.c \
|
tzstrftime.c \
|
||||||
adb_networking.c \
|
adb_networking.c \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue