diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/core/prim.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/core/prim.h b/include/osmocom/core/prim.h index 2e60c46d..b1026fe3 100644 --- a/include/osmocom/core/prim.h +++ b/include/osmocom/core/prim.h @@ -10,6 +10,9 @@ #include <stdint.h> #include <osmocom/core/msgb.h> +#define OSMO_PRIM(prim, op) ((prim << 8) | (op & 0xFF)) +#define OSMO_PRIM_HDR(oph) OSMO_PRIM((oph)->primitive, (oph)->operation) + /*! \brief primitive operation */ enum osmo_prim_operation { PRIM_OP_REQUEST, /*!< \brief request */ |