00001 /* 00002 * jabbot - jabber bot framework 00003 * 00004 * Copyright (C) 2008-2009 by ASN <http://www.asn.pl/> 00005 * Author: Pawel Foremski <pjf@asn.pl> 00006 * 00007 * libasn is free software; you can redistribute it and/or modify it under 00008 * the terms of the GNU General Public License as published by the Free 00009 * Software Foundation; either version 3 of the License, or (at your option) 00010 * any later version. 00011 * 00012 * libasn is distributed in the hope that it will be useful, but WITHOUT ANY 00013 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00014 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00015 * details. 00016 * 00017 * You should have received a copy of the GNU General Public License along with 00018 * this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef _JABBER_H_ 00022 #define _JABBER_H_ 00023 00024 #include <loudmouth/loudmouth.h> 00025 00026 #include "jabbot.h" 00027 #include "jabber.h" 00028 00030 #define JB_SEND(msg) do { \ 00031 if (!lm_connection_send(jb->conn, (msg), &err)) \ 00032 die("lm_connection_send(): %s\n", err->message); \ 00033 else \ 00034 lm_message_unref(msg); \ 00035 } while(0); 00036 00038 void jabber_send(struct jb_jid *jid, const char *msg); 00039 00040 void jabber_init(void); 00041 00046 void jabber_status(struct jb_jid *jid, const char *show, const char *status); 00047 00048 #endif
1.5.5