X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=debecfef93728e56ed4cc417f13ddb12549b1df0;hb=9426d563f74aed0b0f32818d4ef535cdfacdb167;hp=3db8a1069ef97625a667cf28eb5dd26bfc243ae5;hpb=f071e095a2a8f76dd78becfa103b952af68e148d;p=babeltrace.git diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index 3db8a106..debecfef 100644 --- a/include/babeltrace/ctf-text/types.h +++ b/include/babeltrace/ctf-text/types.h @@ -17,6 +17,14 @@ * * 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. */ #include @@ -39,7 +47,8 @@ struct ctf_text_stream_pos { int dummy; /* disable output */ int print_names; /* print field names */ int field_nr; - uint64_t last_timestamp; /* to print delta */ + uint64_t last_real_timestamp; /* to print delta */ + uint64_t last_cycles_timestamp; /* to print delta */ GString *string; /* Current string */ }; @@ -52,13 +61,21 @@ struct ctf_text_stream_pos *ctf_text_pos(struct stream_pos *pos) /* * Write only is supported for now. */ +BT_HIDDEN int ctf_text_integer_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_float_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_string_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_enum_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_struct_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_variant_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_array_write(struct stream_pos *pos, struct definition *definition); +BT_HIDDEN int ctf_text_sequence_write(struct stream_pos *pos, struct definition *definition); static inline @@ -73,6 +90,7 @@ void print_pos_tabs(struct ctf_text_stream_pos *pos) /* * Check if the field must be printed. */ +BT_HIDDEN int print_field(struct definition *definition); #endif /* _BABELTRACE_CTF_TEXT_TYPES_H */