Skip to content

Commit

Permalink
fix for #392 - moves OS_STREAM_STATE... to os/inc/osapi-os-core.h as …
Browse files Browse the repository at this point in the history
…it's needed by OS_SelectSingle()
  • Loading branch information
CDKnightNASA committed Mar 26, 2020
1 parent a1e9dbf commit f1115fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 12 additions & 3 deletions src/os/inc/osapi-os-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ typedef struct
}OS_heap_prop_t;


typedef enum
{
OS_STREAM_STATE_BOUND = 0x01,
OS_STREAM_STATE_CONNECTED = 0x02,
OS_STREAM_STATE_READABLE = 0x04,
OS_STREAM_STATE_WRITABLE = 0x08,
} OS_StreamState_t;


/* This typedef is for the OS_GetErrorName function, to ensure
* everyone is making an array of the same length.
*
Expand Down Expand Up @@ -1231,9 +1240,9 @@ int32 OS_SelectMultiple(OS_FdSet *ReadSet, OS_FdSet *WriteSet, int32 msecs);
*
* This function can be used to wait for a single OSAL stream ID
* to become readable or writable. On entry, the "StateFlags"
* parameter should be set to the desired state (readble or writable)
* and upon return the flags will be set to the state actually
* detected.
* parameter should be set to the desired state (OS_STREAM_STATE_READABLE
* and/or OS_STREAM_STATE_WRITABLE) and upon return the flags
* will be set to the state actually detected.
*
* As this operates on a single ID, the filehandle is protected
* during this call, such that another thread accessing the same
Expand Down
8 changes: 0 additions & 8 deletions src/os/shared/os-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,6 @@ typedef struct
uint16 flags;
}OS_common_record_t;

typedef enum
{
OS_STREAM_STATE_BOUND = 0x01,
OS_STREAM_STATE_CONNECTED = 0x02,
OS_STREAM_STATE_READABLE = 0x04,
OS_STREAM_STATE_WRITABLE = 0x08,
} OS_StreamState_t;

/*tasks */
typedef struct
{
Expand Down

0 comments on commit f1115fc

Please sign in to comment.