X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-iterator.h;h=bd58398cf61d90672448182420cd47c550e80c08;hb=c8db321922f3730c70628a5e452baf8a046e70fd;hp=dcaafb0e2a275e2138732fd3eec9b1f6edd674dc;hpb=07245ac23157616e3f4ff611341f18193de8e37d;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-iterator.h b/include/babeltrace/graph/notification-iterator.h index dcaafb0e..bd58398c 100644 --- a/include/babeltrace/graph/notification-iterator.h +++ b/include/babeltrace/graph/notification-iterator.h @@ -2,12 +2,9 @@ #define BABELTRACE_GRAPH_NOTIFICATION_ITERATOR_H /* - * BabelTrace - Notification Iterator - * + * Copyright 2017-2018 Philippe Proulx * Copyright 2015 Jérémie Galarneau * - * Author: Jérémie Galarneau - * * 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 @@ -27,38 +24,20 @@ * SOFTWARE. */ -/* For bt_get() */ -#include - -#include +/* For bt_notification, bt_notification_iterator */ +#include #ifdef __cplusplus extern "C" { #endif -struct bt_notification; -struct bt_notification_iterator; - -/** - * Status code. Errors are always negative. - */ enum bt_notification_iterator_status { - /** Canceled. */ - BT_NOTIFICATION_ITERATOR_STATUS_CANCELED = 125, - /** No notifications available for now. Try again later. */ - BT_NOTIFICATION_ITERATOR_STATUS_AGAIN = 11, - /** No more notifications to be delivered. */ - BT_NOTIFICATION_ITERATOR_STATUS_END = 1, - /** No error, okay. */ BT_NOTIFICATION_ITERATOR_STATUS_OK = 0, - /** Invalid arguments. */ - BT_NOTIFICATION_ITERATOR_STATUS_INVALID = -22, - /** General error. */ + BT_NOTIFICATION_ITERATOR_STATUS_END = 1, + BT_NOTIFICATION_ITERATOR_STATUS_AGAIN = 11, + BT_NOTIFICATION_ITERATOR_STATUS_CANCELED = 125, BT_NOTIFICATION_ITERATOR_STATUS_ERROR = -1, - /** Out of memory. */ BT_NOTIFICATION_ITERATOR_STATUS_NOMEM = -12, - /** Unsupported iterator feature. */ - BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED = -2, }; #ifdef __cplusplus