X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-text%2Ftypes.h;h=d69af90523220b33ee03dc18b3fd039583add267;hp=9e65435ef38ebd2f4ee104a2144898caf643939d;hb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;hpb=c5e74408f9786219f6b44400dcf2098ab9cc78fb diff --git a/include/babeltrace/ctf-text/types.h b/include/babeltrace/ctf-text/types.h index 9e65435e..d69af905 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 @@ -24,7 +32,7 @@ #include #include #include -#include +#include #include #include @@ -37,6 +45,11 @@ struct ctf_text_stream_pos { FILE *fp; /* File pointer. NULL if unset. */ int depth; int dummy; /* disable output */ + int print_names; /* print field names */ + int field_nr; + uint64_t last_real_timestamp; /* to print delta */ + uint64_t last_cycles_timestamp; /* to print delta */ + GString *string; /* Current string */ }; static inline @@ -66,4 +79,9 @@ void print_pos_tabs(struct ctf_text_stream_pos *pos) fprintf(pos->fp, "\t"); } +/* + * Check if the field must be printed. + */ +int print_field(struct definition *definition); + #endif /* _BABELTRACE_CTF_TEXT_TYPES_H */