Ignore:
Timestamp:
Oct 10, 2001, 9:08:08 PM (24 years ago)
Author:
phaller
Message:

added wrapper macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ws2_32/socket.cpp

    r6201 r6995  
    1 /* $Id: socket.cpp,v 1.9 2001-07-07 14:29:22 achimha Exp $ */
     1/* $Id: socket.cpp,v 1.10 2001-10-10 19:08:08 phaller Exp $ */
    22/*
    33 * based on Windows Sockets 1.1 specs
     
    1717 */
    1818
     19
     20/*****************************************************************************
     21 * Includes                                                                  *
     22 *****************************************************************************/
     23
    1924#include <odin.h>
    2025#include <winsock2.h>
    2126#include <debugtools.h>
     27#include <odinwrap.h>
     28
     29
     30ODINDEBUGCHANNEL(WS2_32-SOCKET)
     31
    2232
    2333/***********************************************************************
     
    2535 *
    2636 */
    27 WSAEVENT WINAPI WSACreateEvent(void)
     37ODINFUNCTION0(WSAEVENT, WSACreateEvent)
    2838{
    2939    /* Create a manual-reset event, with initial state: unsignealed */
    30     TRACE("WSACreateEvent");
    3140   
    3241    return CreateEventA(NULL, TRUE, FALSE, NULL);   
    3342}
    3443
    35 BOOL WINAPI WSASetEvent(WSAEVENT hEvent)
     44ODINFUNCTION1(BOOL, WSASetEvent,
     45              WSAEVENT, hEvent)
    3646{
    37     TRACE("WSASetEvent event=0x%x\n", hEvent);
    3847    return SetEvent(hEvent);
    3948}
     
    4352 *
    4453 */
    45 BOOL WINAPI WSACloseEvent(WSAEVENT hEvent)
     54ODINFUNCTION1(BOOL, WSACloseEvent,
     55              WSAEVENT, hEvent)
    4656{
    47     TRACE ("WSACloseEvent event=0x%x\n", hEvent);
    48 
    4957    return CloseHandle(hEvent);
    5058}
     
    5462 *
    5563 */
    56 SOCKET WINAPI WSASocketA(int af, int type, int protocol,
    57                          LPWSAPROTOCOL_INFOA lpProtocolInfo,
    58                          GROUP g, DWORD dwFlags)
     64ODINFUNCTION6(SOCKET, WSASocketA,
     65              int, af,
     66              int, type,
     67              int, protocol,
     68              LPWSAPROTOCOL_INFOA, lpProtocolInfo,
     69              GROUP, g,
     70              DWORD, dwFlags)
    5971{
     72  dprintf(("WSASocketA incorrectly implemented"));
    6073   /*
    6174      FIXME: The "advanced" parameters of WSASocketA (lpProtocolInfo,
     
    7386 *
    7487 */
    75 SOCKET WINAPI WSASocketW(int af, int type, int protocol,
    76                          LPWSAPROTOCOL_INFOW lpProtocolInfo,
    77                          GROUP g, DWORD dwFlags)
     88ODINFUNCTION6(SOCKET, WSASocketW,
     89              int, af,
     90              int, type,
     91              int, protocol,
     92              LPWSAPROTOCOL_INFOW, lpProtocolInfo,
     93              GROUP, g,
     94              DWORD, dwFlags)
    7895{
     96  dprintf(("WSASocketW incorrectly implemented"));
    7997   /*
    8098      FIXME: The "advanced" parameters of WSASocketA (lpProtocolInfo,
Note: See TracChangeset for help on using the changeset viewer.