Include cleaning
[apps/agl-service-can-low-level.git] / src / can / can-command.hpp
index 62b56c1..8324d32 100644 (file)
 /**
  * @brief The type signature for a function to handle a custom OpenXC command.
  *
- * @param[in] char* name - the name of the received command.
- * @param[in] openxc_DynamicField* value - the value of the received command, in a DynamicField. The actual type
+ * @param[in] name - the name of the received command.
+ * @param[in] value - the value of the received command, in a DynamicField. The actual type
  *             may be a number, string or bool.
- * @param[in] openxc_DynamicField* event - an optional event from the received command, in a DynamicField. The
+ * @param[in] event - an optional event from the received command, in a DynamicField. The
  *             actual type may be a number, string or bool.
- * @param[in] CanSignal* signals - The list of all signals.
- * @param[in] int signalCount - The length of the signals array.
+ * @param[in] signals - The list of all signals.
+ * @param[in] signalCount - The length of the signals array.
  */
 typedef void (*CommandHandler)(const char* name, openxc_DynamicField* value,
-               openxc_DynamicField* event, CanSignal* signals, int signalCount);
+               openxc_DynamicField* event, can_signal_t* signals, int signalCount);
 
 /* @struct CanCommand
  * @brief The structure to represent a supported custom OpenXC command.
@@ -51,16 +51,5 @@ typedef void (*CommandHandler)(const char* name, openxc_DynamicField* value,
 typedef struct {
        const char* generic_name; /*!< generic_name - The name of the command.*/
        CommandHandler handler; /*!< handler - An function to process the received command's data and perform some
-                                                             action.*/
+                                                        *      action.*/
 } CanCommand;
-
-/* Public: Return an array of all OpenXC CAN commands enabled in the active
- * configuration that can write back to CAN with a custom handler.
- *
- * * Commands not defined here are handled using a 1-1 mapping from the signals
- * list.
- *             */
-CanCommand* getCommands();
-
-/* Public: Return the length of the array returned by getCommandCount(). */
-int getCommandCount();
\ No newline at end of file