X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fformat.h;h=93d1e25146495920c40537b942d556b54541391c;hp=c97d1987fd9e14c05f440223308d41c5d1c9b39c;hb=95d36295f18e15c7f68a97fbab3eb1961d21cd70;hpb=5901aa79610cd8703f6a21c00bcdc00cb6e66da1 diff --git a/include/babeltrace/format.h b/include/babeltrace/format.h index c97d1987..93d1e251 100644 --- a/include/babeltrace/format.h +++ b/include/babeltrace/format.h @@ -6,7 +6,9 @@ * * Trace Format Header * - * Copyright 2010, 2011 - Mathieu Desnoyers + * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation + * + * Author: Mathieu Desnoyers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,14 +26,33 @@ #include #include +/* forward declaration */ +struct ctf_stream_pos; + /* Parent trace descriptor */ struct trace_descriptor { }; +struct mmap_stream { + int fd; + struct cds_list_head list; +}; + +struct mmap_stream_list { + struct cds_list_head head; +}; + struct format { GQuark name; - struct trace_descriptor *(*open_trace)(const char *path, int flags); + struct trace_descriptor *(*open_trace)(const char *collection_path, + const char *path, int flags, + void (*move_pos_slow)(struct ctf_stream_pos *pos, size_t offset, + int whence), FILE *metadata_fp); + struct trace_descriptor *(*open_mmap_trace)( + struct mmap_stream_list *mmap_list, + void (*move_pos_slow)(struct ctf_stream_pos *pos, size_t offset, + int whence), FILE *metadata_fp); void (*close_trace)(struct trace_descriptor *descriptor); };