Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/aim.h

    rfe73d0c r7869e48  
    1 /* 
     1/*
    22 * Main libfaim header.  Must be included in client for prototypes/macros.
    33 *
     
    5151
    5252#if defined(mach) && defined(__APPLE__)
    53 #define gethostbyname(x) gethostbyname2(x, AF_INET) 
     53#define gethostbyname(x) gethostbyname2(x, AF_INET)
    5454#endif
    5555
     
    5757/*
    5858 * For a win32 DLL, we define WIN32_INDLL if this file
    59  * is included while compiling the DLL. If its not 
     59 * is included while compiling the DLL. If its not
    6060 * defined (its included in a client app), the symbols
    6161 * will be imported instead of exported.
     
    6363#ifdef WIN32_INDLL
    6464#define faim_export __declspec(dllexport)
    65 #else 
     65#else
    6666#define faim_export __declspec(dllimport)
    6767#endif /* WIN32_INDLL */
     
    8383#endif
    8484
    85 /* 
    86  * Current Maximum Length for Screen Names (not including NULL) 
     85/*
     86 * Current Maximum Length for Screen Names (not including NULL)
    8787 *
    8888 * Currently only names up to 16 characters can be registered
     
    104104 *
    105105 * XXX: the real limit is the total SNAC size at 8192. Fix this.
    106  * 
     106 *
    107107 */
    108108#define MAXMSGLEN 7987
     
    118118 *
    119119 * This is actually defined by the protocol to be
    120  * dynamic, but I have yet to see due cause to 
     120 * dynamic, but I have yet to see due cause to
    121121 * define it dynamically here.  Maybe later.
    122122 *
     
    132132
    133133/*
    134  * Client info.  Filled in by the client and passed in to 
     134 * Client info.  Filled in by the client and passed in to
    135135 * aim_send_login().  The information ends up getting passed to OSCAR
    136136 * through the initial login command.
     
    277277#define CLIENTINFO_ICQ_KNOWNGOOD CLIENTINFO_ICQ_5_45_3777
    278278
    279 /* 
    280  * These could be arbitrary, but its easier to use the actual AIM values 
     279/*
     280 * These could be arbitrary, but its easier to use the actual AIM values
    281281 */
    282282#define AIM_CONN_TYPE_BOS               0x0002
     
    323323        void *internal; /* internal conn-specific libfaim data */
    324324        time_t lastactivity; /* time of last transmit */
    325         int forcedlatency; 
     325        int forcedlatency;
    326326        void *handlerlist;
    327327        void *sessv; /* pointer to parent session */
     
    353353        fu8_t hdrtype; /* defines which piece of the union to use */
    354354        union {
    355                 struct { 
     355                struct {
    356356                        fu8_t type;
    357                         flap_seqnum_t seqnum;     
     357                        flap_seqnum_t seqnum;
    358358                } flap;
    359359                struct {
     
    379379
    380380/*
    381  * AIM Session: The main client-data interface. 
     381 * AIM Session: The main client-data interface.
    382382 *
    383383 */
     
    390390
    391391        /*
    392          * Pointer to anything the client wants to 
     392         * Pointer to anything the client wants to
    393393         * explicitly associate with this session.
    394394         *
     
    410410         * I/O.  I don't suggest that you use libfaim's internal I/O.
    411411         * Its really bad and the API/event model is quirky at best.
    412          * 
     412         *
    413413         */
    414         aim_frame_t *queue_outgoing;   
    415         aim_frame_t *queue_incoming; 
     414        aim_frame_t *queue_outgoing;
     415        aim_frame_t *queue_incoming;
    416416
    417417        /*
     
    439439
    440440        /*
    441          * Outstanding snac handling 
     441         * Outstanding snac handling
    442442         *
    443443         * XXX: Should these be per-connection? -mid
     
    764764/*
    765765 * This information is provided in the Incoming ICBM callback for
    766  * Channel 1 ICBM's. 
     766 * Channel 1 ICBM's.
    767767 *
    768768 * Note that although CUSTOMFEATURES and CUSTOMCHARSET say they
     
    780780        aim_mpmsg_t mpmsg;
    781781        fu32_t icbmflags; /* some flags apply only to ->msg, not all mpmsg */
    782        
     782
    783783        /* Only provided if message has a human-readable section */
    784784        char *msg;
Note: See TracChangeset for help on using the changeset viewer.