jingle-filetransfert/filetransfert.c
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Mon, 07 Jun 2010 19:15:28 +0200
changeset 15 61ffa66f8288
parent 14 77966ed56e14
child 18 d0ddcfd31eb8
permissions -rw-r--r--
Include config.h. The file transfert module now add the corresponding feature.

/*
 * filetransfert.c
 *
 * Copyrigth (C) 2010 Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
 *
 * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */

#include "config.h"

#include <glib.h>

#include <mcabber/modules.h>
#include <mcabber/xmpp_helper.h>

#include <jingle.h>

#include "filetransfert.h"


static void jingleft_init(void);
static void jingleft_uninit(void);


const gchar *deps[] = { "jingle", NULL };

module_info_t info_jingle_filetransfert = {
  .branch          = MCABBER_BRANCH,
  .api             = MCABBER_API_VERSION,
  .version         = PROJECT_VERSION,
  .description     = "Jingle File Transfert (XEP-0234)\n",
  .requires        = deps,
  .init            = jingleft_init,
  .uninit          = jingleft_uninit,
  .next            = NULL,
};


static void jingleft_init(void)
{
  xmpp_add_feature(NS_JINGLE_APP_FT);
}

static void jingleft_uninit(void)
{
  xmpp_del_feature(NS_JINGLE_APP_FT);
}