Logo Search packages:      
Sourcecode: ysmv7 version File versions  Download package

YSM_Wrappers.h

/*    $Id: YSM_Wrappers.h,v 1.10 2003/09/29 02:16:50 rad2k Exp $  */
/*
-======================== ysmICQ client ============================-
            Having fun with a boring Protocol
-======================== YSM_Wrappers.h ===========================-

YSM (YouSickMe) ICQ Client. An Original Multi-Platform ICQ client.
Copyright (C) 2002 rad2k Argentina.

YSM 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.

For Contact information read the AUTHORS file.

*/

#ifndef _YSMWRAPPERSH_
#define _YSMWRAPPERSH_
int YSM_WRITE( int32_t sock, void *data, int32_t data_len );

int
YSM_READ( int32_t sock,
      void  *buf,
      int   read_len,
      char  priority,
      char  *file,
      int   line );
      
size_t
YSM_READ_LN(int32_t sock, int8_t *obuf, size_t maxsize);


int32_t
YSM_WRITE_DC( YSM_SLAVE *victim, int32_t sock, void *data, int32_t data_len);

void * YSM_Malloc( size_t size, char *file, int line );
void * YSM_Calloc( size_t nmemb, size_t size, char *file, int line );
void YSM_Free( void *what, char *file, int line );

void YSM_Exit( int32_t status, int8_t ask );

void YSM_Reconnect( void );


FILE * YSM_fopen(const char *path, const char *mode);
int YSM_fclose(FILE *stream);

#endif

Generated by  Doxygen 1.6.0   Back to index