Commenting the "signal" CMD.

This commit is contained in:
Marcello Stanisci 2018-05-28 13:38:20 +02:00
parent 12801e2a4c
commit 26be8717c5
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -27,6 +27,10 @@
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_testing_lib.h" #include "taler_testing_lib.h"
/**
* State for a "signal" CMD.
*/
struct SignalState struct SignalState
{ {
/** /**
@ -38,15 +42,13 @@ struct SignalState
* The signal to send to the process. * The signal to send to the process.
*/ */
int signal; int signal;
}; };
/** /**
* Run the command. * Run the command.
* *
* @param cls closure, typically a #struct SignalState. * @param cls closure.
* @param cmd the command to execute, a /wire one. * @param cmd the command to execute.
* @param is the interpreter state. * @param is the interpreter state.
*/ */
static void static void
@ -67,9 +69,9 @@ signal_run (void *cls,
/** /**
* Cleanup the state. * Cleanup the state from a "signal" CMD.
* *
* @param cls closure, typically a #struct SignalState. * @param cls closure.
* @param cmd the command which is being cleaned up. * @param cmd the command which is being cleaned up.
*/ */
static void static void
@ -83,10 +85,11 @@ signal_cleanup (void *cls,
/** /**
* Send a signal to a process. * Create a "signal" CMD.
* *
* @param process handle to the process * @param label command label.
* @param signal signal to send * @param process handle to the process to signal.
* @param signal signal to send.
* *
* @return the command. * @return the command.
*/ */