Changeset 934db064 for otr.h


Ignore:
Timestamp:
2010-09-01T22:09:27Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2dcaf9a
Parents:
0c85c08
Message:

Do encryption and decryption. Somehow SMP and other things aren't working
so well yet, at least when testing with Pidgin on the other side. Not sure
where the bug is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.h

    r0c85c08 r934db064  
    4141
    4242
    43 #ifdef WITH_OTR
    4443#include <libotr/proto.h>
    4544#include <libotr/message.h>
     
    8180int otr_check_for_key(struct account *a);
    8281
    83 /* called from imcb_buddy_msg() */
    84 char *otr_handle_message(struct im_connection *ic, const char *handle,
    85         const char *msg);
    86        
    87 /* called from imc_buddy_msg() */
    88 int otr_send_message(struct im_connection *ic, const char *handle, const char *msg,
    89         int flags);
    90 
    91 #else
    92 
    93 typedef void otr_t;
    94 typedef void *OtrlMessageAppOps;
    95 
    96 #define otr_free(otr) {}
    97 #define otr_load(irc) {}
    98 #define otr_save(irc) {}
    99 #define otr_remove(nick) {}
    100 #define otr_rename(onick,nnick) {}
    101 #define otr_check_for_key(acc) (0)
    102 #define otr_handle_message(ic,handle,msg) (g_strdup(msg))
    103 #define otr_send_message(ic,h,m,f) (ic->acc->prpl->buddy_msg(ic,h,m,f))
    104 
    105 void cmd_otr_nosupport(void *, char **);
    106 
    10782#endif
    108 #endif
Note: See TracChangeset for help on using the changeset viewer.