Przeglądaj źródła

htable: revert usage of dmq nodes

- back to v4.2.1 state
Daniel-Constantin Mierla 10 lat temu
rodzic
commit
0dbf946ac5
2 zmienionych plików z 2 dodań i 3 usunięć
  1. 1 2
      modules/htable/ht_dmq.c
  2. 1 1
      modules/htable/ht_dmq.h

+ 1 - 2
modules/htable/ht_dmq.c

@@ -59,7 +59,6 @@ int ht_dmq_initialize()
         }
         }
 
 
 	not_peer.callback = ht_dmq_handle_msg;
 	not_peer.callback = ht_dmq_handle_msg;
-	not_peer.init_callback = NULL;
 	not_peer.description.s = "htable";
 	not_peer.description.s = "htable";
 	not_peer.description.len = 6;
 	not_peer.description.len = 6;
 	not_peer.peer_id.s = "htable";
 	not_peer.peer_id.s = "htable";
@@ -89,7 +88,7 @@ int ht_dmq_broadcast(str* body) {
 /**
 /**
  * @brief ht dmq callback
  * @brief ht dmq callback
  */
  */
-int ht_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp, dmq_node_t* dmq_node)
+int ht_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp)
 {
 {
 	int content_length;
 	int content_length;
 	str body;
 	str body;

+ 1 - 1
modules/htable/ht_dmq.h

@@ -40,7 +40,7 @@ typedef enum {
 } ht_dmq_action_t;
 } ht_dmq_action_t;
 
 
 int ht_dmq_initialize();
 int ht_dmq_initialize();
-int ht_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp, dmq_node_t* dmq_node);
+int ht_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp);
 int ht_dmq_replicate_action(ht_dmq_action_t action, str* htname, str* cname, int type, int_str* val, int mode);
 int ht_dmq_replicate_action(ht_dmq_action_t action, str* htname, str* cname, int type, int_str* val, int mode);
 int ht_dmq_replay_action(ht_dmq_action_t action, str* htname, str* cname, int type, int_str* val, int mode);
 int ht_dmq_replay_action(ht_dmq_action_t action, str* htname, str* cname, int type, int_str* val, int mode);
 int ht_dmq_resp_callback_f(struct sip_msg* msg, int code, dmq_node_t* node, void* param);
 int ht_dmq_resp_callback_f(struct sip_msg* msg, int code, dmq_node_t* node, void* param);