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

Commit 1b154930 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 1867 into donut

* changes:
  Cleaning up whitespace in adb sources. Nothing more, nothing less.
parents b48acb0e f6330a2e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -17,10 +17,13 @@
#ifndef __FDEVENT_H
#define __FDEVENT_H

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

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

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

/* 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);

@@ -53,6 +58,8 @@ void fdevent_set(fdevent *fde, unsigned events);
void fdevent_add(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.
*/
void fdevent_loop();
+4 −4
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ The identifiers "local-id" and "remote-id" are always relative to the
reversed.




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

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.




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

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




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

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

File changed.

Contains only whitespace changes.

+17 −17

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

Loading