X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fcallbacks-internal.h;h=014f4b9841d1ff1000c935fe69965196aacfdff8;hb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10;hp=e9528da5b61c690ba896626e792b251914580d90;hpb=8a4722b0ccf5cf30ee76a85bdf6bea2fa0515153;p=babeltrace.git diff --git a/include/babeltrace/ctf/callbacks-internal.h b/include/babeltrace/ctf/callbacks-internal.h index e9528da5..014f4b98 100644 --- a/include/babeltrace/ctf/callbacks-internal.h +++ b/include/babeltrace/ctf/callbacks-internal.h @@ -19,10 +19,21 @@ * * 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 -#include +#include + +struct bt_ctf_iter; +struct ctf_stream_definition; struct bt_callback { int prio; /* Callback order priority. Lower first. Dynamically assigned from dependency graph. */ @@ -31,7 +42,7 @@ struct bt_callback { struct bt_dependencies *depends; struct bt_dependencies *weak_depends; struct bt_dependencies *provides; - enum bt_cb_ret (*callback)(struct ctf_event_definition *ctf_data, + enum bt_cb_ret (*callback)(struct bt_ctf_event *ctf_data, void *private_data); }; @@ -52,6 +63,7 @@ struct bt_dependencies { int refcount; /* free when decremented to 0 */ }; +BT_HIDDEN void process_callbacks(struct bt_ctf_iter *iter, struct ctf_stream_definition *stream); #endif /* _BABELTRACE_CALLBACKS_INTERNAL_H */