diff --git a/src/commands.c b/src/commands.c index 57edcd95..8636afb1 100644 --- a/src/commands.c +++ b/src/commands.c @@ -26,8 +26,6 @@ #include #include -#include - #include "logger.h" diff --git a/src/commands.h b/src/commands.h index be1bba1a..f7fe21a3 100644 --- a/src/commands.h +++ b/src/commands.h @@ -1,26 +1,8 @@ -/* - * Copyright (C) 2016 Christian Meffert - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ + #ifndef SRC_COMMANDS_H_ #define SRC_COMMANDS_H_ #include -#include - enum command_state { COMMAND_END = 0, @@ -30,12 +12,13 @@ enum command_state { /* * Function that will be executed in the event loop thread. * - * If the function has pending events to complete, it needs to return COMMAND_PENDING with 'ret' set to - * the number of pending events to wait for. + * If the function has pending events to complete, it needs to return + * COMMAND_PENDING with 'ret' set to the number of pending events to wait for. * * @param arg Opaque pointer passed by command_exec_sync or command_exec_async * @param ret Pointer to the return value for the caller of the command - * @return COMMAND_END if there are no pending events (function execution is complete) or COMMAND_PENDING if there are pending events + * @return COMMAND_END if there are no pending events (function execution is + * complete) or COMMAND_PENDING if there are pending events */ typedef enum command_state (*command_function)(void *arg, int *ret);