X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-writer%2Fevent-types.h;h=9b41bf09b04f0416e54cd9f8a5ca03aa33b7701b;hb=3dca22768a95bef664012559aa9ac977091de6ac;hp=fa5cf8caa2808b6398d31fe99edcb0328ec1756a;hpb=d975f66c5dcfc7eade13db3edbc975d2055dfe4b;p=babeltrace.git diff --git a/include/babeltrace/ctf-writer/event-types.h b/include/babeltrace/ctf-writer/event-types.h index fa5cf8ca..9b41bf09 100644 --- a/include/babeltrace/ctf-writer/event-types.h +++ b/include/babeltrace/ctf-writer/event-types.h @@ -30,6 +30,7 @@ * http://www.efficios.com/ctf */ +#include #include #ifdef __cplusplus @@ -52,8 +53,20 @@ extern "C" { * * @param type Field type. */ -extern void bt_ctf_field_type_get(struct bt_field_type *type); -extern void bt_ctf_field_type_put(struct bt_field_type *type); + +/* Pre-2.0 CTF writer compatibility */ +static inline +void bt_ctf_field_type_get(struct bt_field_type *type) +{ + bt_get(type); +} + +/* Pre-2.0 CTF writer compatibility */ +static inline +void bt_ctf_field_type_put(struct bt_field_type *type) +{ + bt_put(type); +} #ifdef __cplusplus }