aboutsummaryrefslogtreecommitdiffstats
path: root/src/bitvector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bitvector.h')
-rw-r--r--src/bitvector.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bitvector.h b/src/bitvector.h
index b14d2040..246824d5 100644
--- a/src/bitvector.h
+++ b/src/bitvector.h
@@ -38,9 +38,15 @@ int bitvec_unhex(struct bitvec *bv, const char* src);
unsigned int bitvec_pack(struct bitvec *bv, uint8_t *buffer);
unsigned int bitvec_unpack(struct bitvec *bv, uint8_t *buffer);
uint64_t bitvec_read_field(struct bitvec *bv, unsigned& read_index, unsigned len);
-int bitvec_write_field(struct bitvec *bv, unsigned& write_index, uint64_t val, unsigned len);
int bitvec_write_field_lh(struct bitvec *bv, unsigned& write_index, uint64_t val, unsigned len);
+
+static inline int bitvec_write_field(struct bitvec *bv, unsigned& write_index, uint64_t val, unsigned len)
+{
+ /* Call the libosmocore variant */
+ return ::bitvec_write_field(bv, &write_index, val, len);
+}
+
/*! }@ */
#endif // BITVECTOR_H