libpurple/protocols/facebook/util.h

Wed, 03 Jun 2015 19:15:53 -0400

author
James Geboski <jgeboski@gmail.com>
date
Wed, 03 Jun 2015 19:15:53 -0400
branch
facebook
changeset 37250
3f5570a17b15
child 37258
291b6e1acc24
permissions
-rw-r--r--

facebook: initial import of bitlbee-facebook

This simply migrates the core functionality from bitlbee-facebook into
the libpurple plugin. This ports everything but group chats, which will
be ported in a subsequent patch.

/* purple
 *
 * Purple is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
 */

#ifndef _FACEBOOK_UTIL_H_
#define _FACEBOOK_UTIL_H_

#include <glib.h>

gchar *
fb_util_randstr(gsize size);

gboolean
fb_util_zcompressed(const GByteArray *bytes);

GByteArray *
fb_util_zcompress(const GByteArray *bytes);

GByteArray *
fb_util_zuncompress(const GByteArray *bytes);

#endif /* _FACEBOOK_UTIL_H_ */

mercurial