Prechádzať zdrojové kódy

pua: renamed MI flags to reflect use of RPC

(cherry picked from commit 5c7bc8a3c1a289111c08334cc4500291f01324aa)
Daniel-Constantin Mierla 7 rokov pred
rodič
commit
59de2edd14
2 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 3 3
      src/modules/pua/hash.h
  2. 2 2
      src/modules/pua/send_publish.c

+ 3 - 3
src/modules/pua/hash.h

@@ -48,9 +48,9 @@
 #define XMPP_PUBLISH        1<<3
 #define XMPP_SUBSCRIBE      1<<4
 #define XMPP_INITIAL_SUBS   1<<5
-#define MI_PUBLISH          1<<6
-#define MI_ASYN_PUBLISH     1<<7
-#define MI_SUBSCRIBE        1<<8
+#define RPC_PUBLISH         1<<6
+#define RPC_ASYN_PUBLISH    1<<7
+#define RPC_SUBSCRIBE       1<<8
 #define RLS_SUBSCRIBE       1<<9
 #define DIALOG_PUBLISH      1<<10
 #define PURPLE_PUBLISH      1<<11

+ 2 - 2
src/modules/pua/send_publish.c

@@ -247,8 +247,8 @@ void publ_cback_func(struct cell *t, int type, struct tmcb_params *ps)
 	{
 		find_and_delete_record(hentity, hash_code);
 
-		if(ps->code== 412 && hentity->body && hentity->flag!= MI_PUBLISH
-				&& hentity->flag!= MI_ASYN_PUBLISH)
+		if(ps->code== 412 && hentity->body && hentity->flag!= RPC_PUBLISH
+				&& hentity->flag!= RPC_ASYN_PUBLISH)
 		{
 			/* sent a PUBLISH within a dialog that no longer exists
 			 * send again an intial PUBLISH */