- Adapted indenation to new agreed upon system

- Added support for second generation scriptcontext based counter
This commit is contained in:
koennecke
2009-02-13 09:00:03 +00:00
parent a3dcad2bfa
commit 91d4af0541
405 changed files with 88101 additions and 88173 deletions

View File

@@ -26,7 +26,7 @@ typedef struct __AsyncQueue AsyncQueue, *pAsyncQueue;
* \param unit pointer to the AsyncUnit created on positive return
* \return positive if successful
*/
int AsyncUnitCreate(const char* queueName, pAsyncUnit* unit);
int AsyncUnitCreate(const char *queueName, pAsyncUnit * unit);
/** \brief Get an AsyncUnit from a given AsyncQueue
* \param queue The AsyncQueue fro which this AsyncUnit is valid
* \return a new AsyncUnit or NULL on error
@@ -40,9 +40,8 @@ pAsyncUnit AsyncUnitFromQueue(pAsyncQueue queue);
* \param unit pointer to the AsyncUnit created on positive return
* \return positive if successful
*/
int AsyncUnitCreateHost(const char* host,
const char* port,
pAsyncUnit* unit);
int AsyncUnitCreateHost(const char *host,
const char *port, pAsyncUnit * unit);
/** \brief destroys an AsyncUnit
*
@@ -74,9 +73,9 @@ int AsyncUnitEnqueueTxn(pAsyncUnit unit, pAsyncTxn pTxn);
* \param resp_len maximum length to be allowed for response
*/
pAsyncTxn AsyncUnitPrepareTxn(pAsyncUnit unit,
const char* command, int cmd_len,
AsyncTxnHandler responseHandler, void* context,
int rsp_len);
const char *command, int cmd_len,
AsyncTxnHandler responseHandler,
void *context, int rsp_len);
/** \brief prepare and queue a transaction
*
@@ -88,9 +87,9 @@ pAsyncTxn AsyncUnitPrepareTxn(pAsyncUnit unit,
* \param resp_len maximum length to be allowed for response
*/
int AsyncUnitSendTxn(pAsyncUnit unit,
const char* command, int cmd_len,
AsyncTxnHandler responseHandler, void* context,
int rsp_len);
const char *command, int cmd_len,
AsyncTxnHandler responseHandler, void *context,
int rsp_len);
/** \brief send a transaction and wait for the response
*
@@ -102,8 +101,8 @@ int AsyncUnitSendTxn(pAsyncUnit unit,
* \param resp_len maximum length to be allowed for response
*/
int AsyncUnitTransact(pAsyncUnit unit,
const char* command, int cmd_len,
char* response, int rsp_len);
const char *command, int cmd_len,
char *response, int rsp_len);
/** \brief write to the AsyncQueue file descriptor
*
@@ -115,7 +114,7 @@ int AsyncUnitTransact(pAsyncUnit unit,
* \param data to be transmitted
* \param buflen lenght of data
*/
int AsyncUnitWrite(pAsyncUnit unit, void* buffer, int buflen);
int AsyncUnitWrite(pAsyncUnit unit, void *buffer, int buflen);
/** \brief registers a notification callback
*
@@ -125,8 +124,8 @@ int AsyncUnitWrite(pAsyncUnit unit, void* buffer, int buflen);
* \param context passed in callback
* \param notify function to be called
*/
typedef void (*AQU_Notify)(void* context, int event);
void AsyncUnitSetNotify(pAsyncUnit unit, void* context, AQU_Notify notify);
typedef void (*AQU_Notify) (void *context, int event);
void AsyncUnitSetNotify(pAsyncUnit unit, void *context, AQU_Notify notify);
/** \brief get the intertransaction delay in milliseconds
*/
@@ -165,7 +164,7 @@ void AsyncUnitSetProtocol(pAsyncUnit unit, pAsyncProtocol protocol);
* \param unit AsyncUnit
* \return channel or NULL
*/
mkChannel* AsyncUnitGetSocket(pAsyncUnit unit);
mkChannel *AsyncUnitGetSocket(pAsyncUnit unit);
/** \brief attempt to reconnect the socket of the associated AsyncQueue
*
@@ -175,12 +174,12 @@ int AsyncUnitReconnect(pAsyncUnit handle);
/** \brief create an AsyncQueue from the SICS command MakeAsyncQueue
*/
int AsyncQueueFactory(SConnection *pCon, SicsInterp *pSics,
void *pData, int argc, char *argv[]);
int AsyncQueueFactory(SConnection * pCon, SicsInterp * pSics,
void *pData, int argc, char *argv[]);
/** \brief SICS command handler for the AsyncQueue object
*/
int AsyncQueueAction(SConnection *pCon, SicsInterp *pSics,
void *pData, int argc, char *argv[]);
int AsyncQueueAction(SConnection * pCon, SicsInterp * pSics,
void *pData, int argc, char *argv[]);
#endif /* SICSASYNCQUEUE */
#endif /* SICSASYNCQUEUE */