- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
18
ascon.h
18
ascon.h
@ -8,7 +8,7 @@
|
||||
* \brief Asynchronous connection handling for devices controlled over tcp-ip
|
||||
* connections. Interface for higher level modules.
|
||||
*/
|
||||
|
||||
|
||||
/** \brief the asynchronous connection
|
||||
*/
|
||||
typedef struct Ascon Ascon;
|
||||
@ -30,22 +30,22 @@ typedef enum {
|
||||
* are protocol specific, but argv[1] is usually host::port
|
||||
* \return the created connection or NULL on failure
|
||||
*/
|
||||
Ascon *AsconMake(SConnection *con, int argc, char *argv[]);
|
||||
Ascon *AsconMake(SConnection * con, int argc, char *argv[]);
|
||||
|
||||
/** \brief kill function
|
||||
* \param a the connection to be killed
|
||||
*/
|
||||
void AsconKill(Ascon *a);
|
||||
void AsconKill(Ascon * a);
|
||||
/** \brief Disconnect function
|
||||
* \param a the connection to disconnect
|
||||
*/
|
||||
void AsconDisconnect(Ascon *a);
|
||||
void AsconDisconnect(Ascon * a);
|
||||
|
||||
/** \brief the task handler. To be called repeatedly.
|
||||
* \param a the connection
|
||||
* \return the state of the connection
|
||||
*/
|
||||
AsconStatus AsconTask(Ascon *a);
|
||||
*/
|
||||
AsconStatus AsconTask(Ascon * a);
|
||||
|
||||
/** \brief write to the connection. allowed only when the state is AsconReady
|
||||
* \param a the connection
|
||||
@ -53,7 +53,7 @@ AsconStatus AsconTask(Ascon *a);
|
||||
* \param noResponse 0 normally, 1 if no reponse is expected
|
||||
* \return 1 on success, 0 when not ready
|
||||
*/
|
||||
int AsconWrite(Ascon *a, char *command, int noResponse);
|
||||
int AsconWrite(Ascon * a, char *command, int noResponse);
|
||||
|
||||
/** \brief read from the connection. allowed only when a response is available
|
||||
* \param a the connection
|
||||
@ -63,12 +63,12 @@ int AsconWrite(Ascon *a, char *command, int noResponse);
|
||||
* The result is only valid until the next call to other AsconXxx functions
|
||||
* and has to be duplicated if needed later.
|
||||
*/
|
||||
char *AsconRead(Ascon *a);
|
||||
char *AsconRead(Ascon * a);
|
||||
|
||||
/** \brief get the connections error list
|
||||
* \return the error list
|
||||
*/
|
||||
ErrMsg *AsconGetErrList(Ascon *a);
|
||||
ErrMsg *AsconGetErrList(Ascon * a);
|
||||
|
||||
/** \brief a helper function
|
||||
* \param argc the number of args
|
||||
|
Reference in New Issue
Block a user