Skip to content

Commit

Permalink
http_async_client Add doxygen templates
Browse files Browse the repository at this point in the history
Please update with better descriptions
  • Loading branch information
oej committed Feb 13, 2016
1 parent f0d0075 commit 0841c45
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README
@@ -1,6 +1,6 @@


Kamailio v4.3
Kamailio v4.4
=============

http://www.kamailio.org
Expand Down
14 changes: 11 additions & 3 deletions modules/http_async_client/async_http.c
Expand Up @@ -22,6 +22,12 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: Include file
* \ingroup http_async_client
*/


#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
Expand Down Expand Up @@ -305,7 +311,7 @@ int async_send_query(sip_msg_t *msg, str *query, str *post, cfg_action_t *act)
}
memset(aq,0,dsize);

if(shm_str_dup(&aq->query, query)<0) {
if(shm_str_dup(&aq->query, query)<0) {
goto error;
}

Expand Down Expand Up @@ -361,17 +367,19 @@ int async_send_query(sip_msg_t *msg, str *query, str *post, cfg_action_t *act)
goto error;
}

if (suspend)
if (suspend) {
/* force exit in config */
return 0;
}

/* continue route processing */
return 1;

error:

if (suspend)
if (suspend) {
tmb.t_cancel_suspend(tindex, tlabel);
}
free_async_query(aq);
return -1;
}
Expand Down
6 changes: 6 additions & 0 deletions modules/http_async_client/async_http.h
Expand Up @@ -22,6 +22,12 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: Async HTTP
* \ingroup http_async_client
*/


#ifndef _ASYNC_HTTP_
#define _ASYNC_HTTP_

Expand Down
7 changes: 7 additions & 0 deletions modules/http_async_client/hm_hash.c
Expand Up @@ -22,6 +22,12 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: Hash functions
* \ingroup http_async_client
*/


#include "hm_hash.h"

extern int hash_size;
Expand Down Expand Up @@ -53,6 +59,7 @@ int init_http_m_table(unsigned int size)
LM_DBG("hash table %p initialized with size %d\n", hm_table, size);
return 0;
}

unsigned int build_hash_key(void *p)
{
str *hash_str;
Expand Down
6 changes: 6 additions & 0 deletions modules/http_async_client/hm_hash.h
Expand Up @@ -22,6 +22,12 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: Hash functions
* \ingroup http_async_client
*/


#ifndef _HM_HASH_
#define _HM_HASH_

Expand Down
12 changes: 12 additions & 0 deletions modules/http_async_client/http_async_client_mod.c
Expand Up @@ -22,6 +22,18 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: The module interface file
* \ingroup http_async_client
*/

/*! \defgroup http_async_client Kamailio :: Async module interface to Curl/HTTP
*
* http://curl.haxx.se
* A generic library for many protocols
*
*/

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
Expand Down
6 changes: 6 additions & 0 deletions modules/http_async_client/http_multi.c
Expand Up @@ -22,6 +22,12 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: multi interface
* \ingroup http_async_client
*/


#include "../../dprint.h"
#include "../../mem/mem.h"
#include "../../ut.h"
Expand Down
6 changes: 6 additions & 0 deletions modules/http_async_client/http_multi.h
Expand Up @@ -22,6 +22,12 @@
*
*/

/*! \file
* \brief Kamailio http_async_client :: Multi interface
* \ingroup http_async_client
*/


#ifndef _HTTP_MULTI_
#define _HTTP_MULTI_

Expand Down

0 comments on commit 0841c45

Please sign in to comment.