Rename C++ header files to .hpp
[lttng-tools.git] / src / bin / lttng-sessiond / action-executor.cpp
index 34d3b7130f0a713b089bff4461cab34c9ce36445..f43716c63986673377890c8a635f25c149a4f7d7 100644 (file)
@@ -5,29 +5,29 @@
  *
  */
 
-#include "action-executor.h"
-#include "cmd.h"
-#include "health-sessiond.h"
-#include "lttng-sessiond.h"
-#include "notification-thread-internal.h"
-#include "session.h"
-#include "thread.h"
-#include <common/dynamic-array.h>
-#include <common/macros.h>
-#include <common/optional.h>
-#include <lttng/action/action-internal.h>
-#include <lttng/action/list-internal.h>
+#include "action-executor.hpp"
+#include "cmd.hpp"
+#include "health-sessiond.hpp"
+#include "lttng-sessiond.hpp"
+#include "notification-thread-internal.hpp"
+#include "session.hpp"
+#include "thread.hpp"
+#include <common/dynamic-array.hpp>
+#include <common/macros.hpp>
+#include <common/optional.hpp>
+#include <lttng/action/action-internal.hpp>
+#include <lttng/action/list-internal.hpp>
 #include <lttng/action/list.h>
-#include <lttng/action/notify-internal.h>
+#include <lttng/action/notify-internal.hpp>
 #include <lttng/action/notify.h>
 #include <lttng/action/rotate-session.h>
 #include <lttng/action/snapshot-session.h>
 #include <lttng/action/start-session.h>
 #include <lttng/action/stop-session.h>
 #include <lttng/condition/evaluation.h>
-#include <lttng/condition/event-rule-matches-internal.h>
+#include <lttng/condition/event-rule-matches-internal.hpp>
 #include <lttng/lttng-error.h>
-#include <lttng/trigger/trigger-internal.h>
+#include <lttng/trigger/trigger-internal.hpp>
 #include <pthread.h>
 #include <stdbool.h>
 #include <stddef.h>
@@ -264,7 +264,7 @@ end:
 
 static int action_executor_notify_handler(struct action_executor *executor,
                const struct action_work_item *work_item,
-               struct action_work_subitem *item)
+               struct action_work_subitem *item __attribute__((unused)))
 {
        return notification_client_list_send_evaluation(work_item->client_list,
                        work_item->trigger,
@@ -276,7 +276,7 @@ static int action_executor_notify_handler(struct action_executor *executor,
 }
 
 static int action_executor_start_session_handler(
-               struct action_executor *executor,
+               struct action_executor *executor __attribute__((unused)),
                const struct action_work_item *work_item,
                struct action_work_subitem *item)
 {
@@ -361,7 +361,7 @@ end:
 }
 
 static int action_executor_stop_session_handler(
-               struct action_executor *executor,
+               struct action_executor *executor __attribute__((unused)),
                const struct action_work_item *work_item,
                struct action_work_subitem *item)
 {
@@ -446,7 +446,7 @@ end:
 }
 
 static int action_executor_rotate_session_handler(
-               struct action_executor *executor,
+               struct action_executor *executor __attribute__((unused)),
                const struct action_work_item *work_item,
                struct action_work_subitem *item)
 {
@@ -538,7 +538,7 @@ end:
 }
 
 static int action_executor_snapshot_session_handler(
-               struct action_executor *executor,
+               struct action_executor *executor __attribute__((unused)),
                const struct action_work_item *work_item,
                struct action_work_subitem *item)
 {
@@ -633,9 +633,10 @@ end:
        return ret;
 }
 
-static int action_executor_list_handler(struct action_executor *executor,
-               const struct action_work_item *work_item,
-               struct action_work_subitem *item)
+static int action_executor_list_handler(
+               struct action_executor *executor __attribute__((unused)),
+               const struct action_work_item *work_item __attribute__((unused)),
+               struct action_work_subitem *item __attribute__((unused)))
 {
        ERR("Execution of a list action by the action executor should never occur");
        abort();
This page took 0.025779 seconds and 4 git commands to generate.