Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6330a2e authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

Cleaning up whitespace in adb sources. Nothing more, nothing less.

parent 414ff7d9
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -17,10 +17,13 @@
#ifndef __FDEVENT_H
#ifndef __FDEVENT_H
#define __FDEVENT_H
#define __FDEVENT_H


#include <stdint.h>  /* for int64_t */

/* events that may be observed */
/* events that may be observed */
#define FDE_READ              0x0001
#define FDE_READ              0x0001
#define FDE_WRITE             0x0002
#define FDE_WRITE             0x0002
#define FDE_ERROR             0x0004
#define FDE_ERROR             0x0004
#define FDE_TIMEOUT           0x0008


/* features that may be set (via the events set/add/del interface) */
/* features that may be set (via the events set/add/del interface) */
#define FDE_DONT_CLOSE        0x0080
#define FDE_DONT_CLOSE        0x0080
@@ -30,6 +33,8 @@ typedef struct fdevent fdevent;
typedef void (*fd_func)(int fd, unsigned events, void *userdata);
typedef void (*fd_func)(int fd, unsigned events, void *userdata);


/* Allocate and initialize a new fdevent object
/* Allocate and initialize a new fdevent object
 * Note: use FD_TIMER as 'fd' to create a fd-less object
 * (used to implement timers).
*/
*/
fdevent *fdevent_create(int fd, fd_func func, void *arg);
fdevent *fdevent_create(int fd, fd_func func, void *arg);


@@ -53,6 +58,8 @@ void fdevent_set(fdevent *fde, unsigned events);
void fdevent_add(fdevent *fde, unsigned events);
void fdevent_add(fdevent *fde, unsigned events);
void fdevent_del(fdevent *fde, unsigned events);
void fdevent_del(fdevent *fde, unsigned events);


void fdevent_set_timeout(fdevent *fde, int64_t  timeout_ms);

/* loop forever, handling events.
/* loop forever, handling events.
*/
*/
void fdevent_loop();
void fdevent_loop();
+4 −4
Original line number Original line Diff line number Diff line
@@ -52,7 +52,7 @@ The identifiers "local-id" and "remote-id" are always relative to the
reversed.
reversed.






--- CONNECT(version, maxdata, "system-identity-string") ----------------
--- CONNECT(version, maxdata, "system-identity-string") ----------------


The CONNECT message establishes the presence of a remote system.
The CONNECT message establishes the presence of a remote system.
@@ -114,7 +114,7 @@ is used to establish the connection). Nonetheless, the local-id MUST
not change on later READY messages sent to the same stream.
not change on later READY messages sent to the same stream.






--- WRITE(0, remote-id, "data") ----------------------------------------
--- WRITE(0, remote-id, "data") ----------------------------------------


The WRITE message sends data to the recipient's stream identified by
The WRITE message sends data to the recipient's stream identified by
@@ -172,7 +172,7 @@ to send across the wire.
#define A_WRTE 0x45545257
#define A_WRTE 0x45545257






--- implementation details ---------------------------------------------
--- implementation details ---------------------------------------------


The core of the bridge program will use three threads.  One thread
The core of the bridge program will use three threads.  One thread
+4 −4

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+17 −17

File changed.

Contains only whitespace changes.

Loading