From: Christopher (s. O'B. <tal...@us...> - 2005-06-07 02:52:49
|
Update of /cvsroot/gaim/gaim/src/protocols/sametime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5930/src/protocols/sametime Added Files: .cvsignore Makefile.am sametime.c sametime.h Log Message: adding sametime support to the build --- NEW FILE: .cvsignore --- .libs *.lo *.o Makefile Makefile.in --- NEW FILE: Makefile.am --- EXTRA_DIST = # Makefile.mingw pkgdir = $(libdir)/gaim noinst_HEADERS = \ meanwhile/mw_channel.h \ meanwhile/mw_cipher.h \ meanwhile/mw_common.h \ meanwhile/mw_debug.h \ meanwhile/mw_error.h \ meanwhile/mw_message.h \ meanwhile/mw_service.h \ meanwhile/mw_session.h \ meanwhile/mw_srvc_aware.h \ meanwhile/mw_srvc_conf.h \ meanwhile/mw_srvc_ft.h \ meanwhile/mw_srvc_im.h \ meanwhile/mw_srvc_resolve.h \ meanwhile/mw_srvc_store.h \ meanwhile/mw_st_list.h \ meanwhile/mw_util.h \ sametime.h meanwhile_SOURCES = \ meanwhile/channel.c \ meanwhile/cipher.c \ meanwhile/common.c \ meanwhile/error.c \ meanwhile/message.c \ meanwhile/mw_debug.c \ meanwhile/mw_util.c \ meanwhile/service.c \ meanwhile/session.c \ meanwhile/srvc_aware.c \ meanwhile/srvc_conf.c \ meanwhile/srvc_ft.c \ meanwhile/srvc_im.c \ meanwhile/srvc_store.c \ meanwhile/srvc_resolve.c \ meanwhile/st_list.c sametime_SOURCES = \ $(meanwhile_SOURCES) \ sametime.c if STATIC_SAMETIME st = -DGAIM_STATIC_PRPL noinst_LIBRARIES = libsametime.a libsametime_a_SOURCES = $(sametime_SOURCES) libsametime_a_CFLAGS = $(AM_CFLAGS) else st = pkg_LTLIBRARIES = libsametime.la libsametime_la_SOURCES = $(sametime_SOURCES) endif libsametime_la_LDFLAGS = -module -avoid-version -no-undefined libsametime_la_LIBADD = $(GLIB_LIBS) AM_CFLAGS = \ $(GLIB_CFLAGS) \ $(DEBUG_CFLAGS) \ -I$(top_srcdir)/src \ -Imeanwhile AM_CPPFLAGS = \ -DG_LOG_DOMAIN=\"meanwhile\" \ $(st) --- NEW FILE: sametime.c --- /* Meanwhile Protocol Plugin for Gaim Adds Lotus Sametime support to Gaim using the Meanwhile library Copyright (C) 2004 Christopher (siege) O'Brien <si...@pr...> 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 [...5034 lines suppressed...] gaim_prefs_add_int(MW_PRPL_OPT_BLIST_ACTION, BLIST_CHOICE_DEFAULT); gaim_prefs_add_bool(MW_PRPL_OPT_PSYCHIC, FALSE); gaim_prefs_add_bool(MW_PRPL_OPT_FORCE_LOGIN, FALSE); gaim_prefs_add_bool(MW_PRPL_OPT_SAVE_DYNAMIC, TRUE); /* forward all our g_log messages to gaim. Generally all the logging calls are using gaim_log directly, but the g_return macros will get caught here */ log_handler[0] = g_log_set_handler(G_LOG_DOMAIN, logflags, mw_log_handler, NULL); /* redirect meanwhile's logging to gaim's */ log_handler[1] = g_log_set_handler("meanwhile", logflags, mw_log_handler, NULL); } GAIM_INIT_PLUGIN(meanwhile, mw_plugin_init, mw_plugin_info); /* The End. */ --- NEW FILE: sametime.h --- /* CFLAGS trumps configure values */ /** default active message */ #ifndef MW_PLUGIN_DEFAULT_ACTIVE_MSG #define MW_PLUGIN_DEFAULT_ACTIVE_MSG "Talk to me" #endif /* "Talk to me" */ /** default away message */ #ifndef MW_PLUGIN_DEFAULT_AWAY_MSG #define MW_PLUGIN_DEFAULT_AWAY_MSG "Not here right now" #endif /* "Not here right now" */ /** default busy message */ #ifndef MW_PLUGIN_DEFAULT_BUSY_MSG #define MW_PLUGIN_DEFAULT_BUSY_MSG "Please do not disturb me" #endif /* "Please do not disturb me" */ /** default host for the gaim plugin. You can specialize a build to default to your server by supplying this at compile time */ #ifndef MW_PLUGIN_DEFAULT_HOST #define MW_PLUGIN_DEFAULT_HOST "" #endif /* "" */ /** default port for the gaim plugin. You can specialize a build to default to your server by supplying this at compile time */ #ifndef MW_PLUGIN_DEFAULT_PORT #define MW_PLUGIN_DEFAULT_PORT 1533 #endif /* 1533 */ /** client id to report to the server. See mwLoginType in meanwhile's mw_common.h for some sample values */ #ifndef MW_CLIENT_TYPE_ID #define MW_CLIENT_TYPE_ID mwLogin_MEANWHILE #endif /* mwLogin_MEANWHILE */ |