Skip to content

Commit

Permalink
Add MARSHAL_DIRECTION_LOCAL.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Sep 16, 2024
1 parent 6d65d6a commit 5df673c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions dse/clib/data/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void marshal_group_in(MarshalGroup* mg_table)
case MARSHAL_DIRECTION_TXRX:
case MARSHAL_DIRECTION_RXONLY:
case MARSHAL_DIRECTION_PARAMETER:
case MARSHAL_DIRECTION_LOCAL:
if (mg->kind == MARSHAL_KIND_PRIMITIVE) _marshal_scalar_in(mg);
break;
default:
Expand Down
5 changes: 5 additions & 0 deletions dse/clib/data/marshal.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,18 @@ typedef enum MarshalKind {

typedef enum MarshalDir {
MARSHAL_DIRECTION_NONE = 0,

/* TX and RX: from target. */
MARSHAL_DIRECTION_TXRX,
/* RX: from target (i.e. source <-rx- target). */
MARSHAL_DIRECTION_RXONLY,
/* TX: to target (i.e. source -tx-> target). */
MARSHAL_DIRECTION_TXONLY,
/* Set (RX): only at specific points in lifecycle. */
MARSHAL_DIRECTION_PARAMETER,
/* RX: from target (caller will not expose to signal interface). */
MARSHAL_DIRECTION_LOCAL,

__MARSHAL_DIRECTION_SIZE__,
} MarshalDir;

Expand Down
1 change: 1 addition & 0 deletions tests/data/test_marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ void test_marshal_group__primitive(void** state)
case MARSHAL_DIRECTION_TXRX:
case MARSHAL_DIRECTION_RXONLY:
case MARSHAL_DIRECTION_PARAMETER:
case MARSHAL_DIRECTION_LOCAL:
switch (mg->type) {
case MARSHAL_TYPE_INT32:
case MARSHAL_TYPE_BOOL:
Expand Down

0 comments on commit 5df673c

Please sign in to comment.