Changes in / [32c632f:643dfc4]


Ignore:
Files:
4 added
8 edited

Legend:

Unmodified
Added
Removed
  • .bzrignore

    r32c632f r643dfc4  
    22config.h
    33bitlbee
     4Debug
     5Debugx
     6deps
     7admin/Debug
     8admin/admin.plg
     9bitlbee.plg
     10*.plg
     11*.aps
     12*.clw
    413user-guide.txt
    514user-guide.html
  • Makefile

    r32c632f r643dfc4  
    1010
    1111# Program variables
    12 objects = account.o bitlbee.o commands.o conf.o crypting.o help.o ini.o irc.o log.o nick.o query.o set.o unix.o url.o user.o storage_text.o storage.o
     12objects = account.o bitlbee.o commands.o crypting.o help.o ini.o irc.o nick.o query.o set.o url.o user.o storage_text.o storage.o
    1313subdirs = protocols
     14
     15ifeq ($(ARCH),Windows)
     16objects += win32.o
     17else
     18objects += unix.o conf.o log.o
     19endif
    1420
    1521# Expansion of variables
  • bitlbee.c

    r32c632f r643dfc4  
    5454        GIOChannel *ch;
    5555       
    56         log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );
    57         log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );
    58        
    5956        global.listen_socket = socket( AF_INET, SOCK_STREAM, 0 );
    6057        if( global.listen_socket == -1 )
     
    109106        if( !irc_new( 0 ) )
    110107                return( 1 );
    111        
    112         log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );
    113         log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
    114108       
    115109        return( 0 );
  • bitlbee.h

    r32c632f r643dfc4  
    4848#include <stdio.h>
    4949#include <ctype.h>
     50#include <errno.h>
     51
    5052#ifndef _WIN32
    5153#include <syslog.h>
    52 #include <errno.h>
    5354#endif
    5455
     
    7576#undef strncasecmp
    7677#define strncasecmp     __PLEASE_USE_G_STRNCASECMP_INSTEAD__
    77 
    78 #ifndef F_OK
    79 #define F_OK 0
    80 #endif
    8178
    8279#define _( x ) x
  • protocols/nogaim.h

    r32c632f r643dfc4  
    159159        irc_t *irc;
    160160};
     161
     162struct ft
     163{
     164        const char *filename;
     165       
     166        /* Total number of bytes in file */
     167        size_t total_bytes;
     168       
     169        /* Current number of bytes received */
     170        size_t cur_bytes;
     171};
     172
     173struct ft_request
     174{
     175        const char *filename;
     176        struct gaim_connection *gc;
     177};
     178
     179typedef void (*ft_recv_handler) (struct ft *, void *data, size_t len);
    161180
    162181struct prpl {
     
    215234        void (* group_buddy)    (struct gaim_connection *, char *who, char *old_group, char *new_group);
    216235
     236        /* file transfers */
     237        struct ft_send_req *(* req_send_file) (struct gaim_connection *, const char *file);
     238        void (* send_file_part) (struct gaim_connection *, struct ft*, void *data, size_t length);
     239        void (* accept_recv_file) (struct gaim_connection *, struct ft*, ft_recv_handler);
     240
    217241        void (* buddy_free)     (struct buddy *);
    218242
  • sock.h

    r32c632f r643dfc4  
    1111#else
    1212# include <winsock2.h>
    13 # ifndef _MSC_VER
    14 #  include <ws2tcpip.h>
    15 # endif
    1613# if !defined(BITLBEE_CORE) && defined(_MSC_VER)
    1714#   pragma comment(lib,"bitlbee.lib")
     
    2017# define read(a,b,c) recv(a,b,c,0)
    2118# define write(a,b,c) send(a,b,c,0)
    22 # define umask _umask
    23 # define mode_t int
    2419# define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); }
    2520# define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); }
  • storage_text.c

    r32c632f r643dfc4  
    2727#include "bitlbee.h"
    2828#include "crypting.h"
     29#ifdef _WIN32
     30# define umask _umask
     31# define mode_t int
     32#endif
     33
     34#ifndef F_OK
     35#define F_OK 0
     36#endif
    2937
    3038/* DO NOT USE THIS FUNCTION IN NEW CODE. This
  • unix.c

    r32c632f r643dfc4  
    6161        if( global.conf->runmode == RUNMODE_INETD )
    6262        {
     63                log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );
     64                log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
     65       
    6366                i = bitlbee_inetd_init();
    6467                log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION );
     
    6770        else if( global.conf->runmode == RUNMODE_DAEMON )
    6871        {
     72                log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );
     73                log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );
     74
    6975                i = bitlbee_daemon_init();
    7076                log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
Note: See TracChangeset for help on using the changeset viewer.