X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fpacket-context-field.h;fp=include%2Fbabeltrace%2Fctf-ir%2Fpacket-context-field.h;h=02fad682d8df17f971a804d6a0086b56498fd8c0;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hp=0000000000000000000000000000000000000000;hpb=d1e4683534e67cc8643ad27536f64f6cc54bc5dc;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/packet-context-field.h b/include/babeltrace/ctf-ir/packet-context-field.h new file mode 100644 index 00000000..02fad682 --- /dev/null +++ b/include/babeltrace/ctf-ir/packet-context-field.h @@ -0,0 +1,47 @@ +#ifndef BABELTRACE_CTF_IR_PACKET_CONTEXT_FIELD_H +#define BABELTRACE_CTF_IR_PACKET_CONTEXT_FIELD_H + +/* + * Copyright 2018 Philippe Proulx + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * The Common Trace Format (CTF) Specification is available at + * http://www.efficios.com/ctf + */ + +#ifdef __cplusplus +extern "C" { +#endif + +struct bt_packet_context_field; +struct bt_field; + +extern +struct bt_field *bt_packet_context_field_borrow_field( + struct bt_packet_context_field *field); + +extern +void bt_packet_context_field_release(struct bt_packet_context_field *field); + +#ifdef __cplusplus +} +#endif + +#endif /* BABELTRACE_CTF_IR_PACKET_CONTEXT_FIELD_H */