Commit 015c947c authored by Alexandre Julliard's avatar Alexandre Julliard

netapi32: Remove DECLSPEC_HIDDEN usage.

parent d305d867
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
struct NBCmdQueue; struct NBCmdQueue;
/* Allocates a new command queue from heap. */ /* Allocates a new command queue from heap. */
struct NBCmdQueue *NBCmdQueueCreate(HANDLE heap) DECLSPEC_HIDDEN; struct NBCmdQueue *NBCmdQueueCreate(HANDLE heap);
/* Adds ncb to queue. Assumes queue is not NULL, and ncb is not already in the /* Adds ncb to queue. Assumes queue is not NULL, and ncb is not already in the
* queue. If ncb is already in the queue, returns NRC_TOOMANY. * queue. If ncb is already in the queue, returns NRC_TOOMANY.
*/ */
UCHAR NBCmdQueueAdd(struct NBCmdQueue *queue, PNCB ncb) DECLSPEC_HIDDEN; UCHAR NBCmdQueueAdd(struct NBCmdQueue *queue, PNCB ncb);
/* Cancels the given ncb. Blocks until the command completes. Implicitly /* Cancels the given ncb. Blocks until the command completes. Implicitly
* removes ncb from the queue. Assumes queue and ncb are not NULL, and that * removes ncb from the queue. Assumes queue and ncb are not NULL, and that
...@@ -44,23 +44,23 @@ UCHAR NBCmdQueueAdd(struct NBCmdQueue *queue, PNCB ncb) DECLSPEC_HIDDEN; ...@@ -44,23 +44,23 @@ UCHAR NBCmdQueueAdd(struct NBCmdQueue *queue, PNCB ncb) DECLSPEC_HIDDEN;
* completed before it could be cancelled, and various other return values for * completed before it could be cancelled, and various other return values for
* different failures. * different failures.
*/ */
UCHAR NBCmdQueueCancel(struct NBCmdQueue *queue, PNCB ncb) DECLSPEC_HIDDEN; UCHAR NBCmdQueueCancel(struct NBCmdQueue *queue, PNCB ncb);
/* Sets the return code of the given ncb, and implicitly removes the command /* Sets the return code of the given ncb, and implicitly removes the command
* from the queue. Assumes queue and ncb are not NULL, and that ncb has been * from the queue. Assumes queue and ncb are not NULL, and that ncb has been
* added to queue previously. * added to queue previously.
* Returns NRC_GOODRET on success. * Returns NRC_GOODRET on success.
*/ */
UCHAR NBCmdQueueComplete(struct NBCmdQueue *queue, PNCB ncb, UCHAR retcode) DECLSPEC_HIDDEN; UCHAR NBCmdQueueComplete(struct NBCmdQueue *queue, PNCB ncb, UCHAR retcode);
/* Cancels all pending commands in the queue (useful for a RESET or a shutdown). /* Cancels all pending commands in the queue (useful for a RESET or a shutdown).
* Returns when all commands have been completed. * Returns when all commands have been completed.
*/ */
UCHAR NBCmdQueueCancelAll(struct NBCmdQueue *queue) DECLSPEC_HIDDEN; UCHAR NBCmdQueueCancelAll(struct NBCmdQueue *queue);
/* Frees all memory associated with the queue. Blocks until all commands /* Frees all memory associated with the queue. Blocks until all commands
* pending in the queue have been completed. * pending in the queue have been completed.
*/ */
void NBCmdQueueDestroy(struct NBCmdQueue *queue) DECLSPEC_HIDDEN; void NBCmdQueueDestroy(struct NBCmdQueue *queue);
#endif /* __NBCMDQUEUE_H__ */ #endif /* __NBCMDQUEUE_H__ */
...@@ -51,7 +51,7 @@ typedef struct _NBNameCacheEntry ...@@ -51,7 +51,7 @@ typedef struct _NBNameCacheEntry
/* Allocates a new name cache from heap, and sets the expire time on new /* Allocates a new name cache from heap, and sets the expire time on new
* entries to entryExpireTimeMS after a cache entry is added. * entries to entryExpireTimeMS after a cache entry is added.
*/ */
struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS) DECLSPEC_HIDDEN; struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS);
/* Adds an entry to the cache. The entry is assumed to have been allocated /* Adds an entry to the cache. The entry is assumed to have been allocated
* from the same heap as the name cache; the name cache will own the entry * from the same heap as the name cache; the name cache will own the entry
...@@ -60,14 +60,14 @@ struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS) DECL ...@@ -60,14 +60,14 @@ struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS) DECL
* same name was in the cache, the entry is replaced. Returns TRUE on success * same name was in the cache, the entry is replaced. Returns TRUE on success
* or FALSE on failure. * or FALSE on failure.
*/ */
BOOL NBNameCacheAddEntry(struct NBNameCache *cache, NBNameCacheEntry *entry) DECLSPEC_HIDDEN; BOOL NBNameCacheAddEntry(struct NBNameCache *cache, NBNameCacheEntry *entry);
/* Finds the entry with name name in the cache and returns a pointer to it, or /* Finds the entry with name name in the cache and returns a pointer to it, or
* NULL if it isn't found. * NULL if it isn't found.
*/ */
const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache, const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache,
const UCHAR name[NCBNAMSZ]) DECLSPEC_HIDDEN; const UCHAR name[NCBNAMSZ]);
void NBNameCacheDestroy(struct NBNameCache *cache) DECLSPEC_HIDDEN; void NBNameCacheDestroy(struct NBNameCache *cache);
#endif /* ndef __WINE_NBNAMECACHE_H */ #endif /* ndef __WINE_NBNAMECACHE_H */
...@@ -2774,17 +2774,17 @@ DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR server, ULONG flags, PDS_DOMAIN_TRU ...@@ -2774,17 +2774,17 @@ DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR server, ULONG flags, PDS_DOMAIN_TRU
return ERROR_NO_LOGON_SERVERS; return ERROR_NO_LOGON_SERVERS;
} }
DECLSPEC_HIDDEN void __RPC_FAR *__RPC_USER MIDL_user_allocate(SIZE_T n) void __RPC_FAR *__RPC_USER MIDL_user_allocate(SIZE_T n)
{ {
return HeapAlloc(GetProcessHeap(), 0, n); return HeapAlloc(GetProcessHeap(), 0, n);
} }
DECLSPEC_HIDDEN void __RPC_USER MIDL_user_free(void __RPC_FAR *p) void __RPC_USER MIDL_user_free(void __RPC_FAR *p)
{ {
HeapFree(GetProcessHeap(), 0, p); HeapFree(GetProcessHeap(), 0, p);
} }
DECLSPEC_HIDDEN handle_t __RPC_USER ATSVC_HANDLE_bind(ATSVC_HANDLE str) handle_t __RPC_USER ATSVC_HANDLE_bind(ATSVC_HANDLE str)
{ {
static unsigned char ncalrpc[] = "ncalrpc"; static unsigned char ncalrpc[] = "ncalrpc";
unsigned char *binding_str; unsigned char *binding_str;
...@@ -2798,7 +2798,7 @@ DECLSPEC_HIDDEN handle_t __RPC_USER ATSVC_HANDLE_bind(ATSVC_HANDLE str) ...@@ -2798,7 +2798,7 @@ DECLSPEC_HIDDEN handle_t __RPC_USER ATSVC_HANDLE_bind(ATSVC_HANDLE str)
return rpc_handle; return rpc_handle;
} }
DECLSPEC_HIDDEN void __RPC_USER ATSVC_HANDLE_unbind(ATSVC_HANDLE ServerName, handle_t rpc_handle) void __RPC_USER ATSVC_HANDLE_unbind(ATSVC_HANDLE ServerName, handle_t rpc_handle)
{ {
RpcBindingFree(&rpc_handle); RpcBindingFree(&rpc_handle);
} }
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
* Public functions * Public functions
*/ */
void NetBIOSInit(void) DECLSPEC_HIDDEN; void NetBIOSInit(void);
void NetBIOSShutdown(void) DECLSPEC_HIDDEN; void NetBIOSShutdown(void);
struct _NetBIOSTransport; struct _NetBIOSTransport;
...@@ -41,7 +41,7 @@ struct _NetBIOSTransport; ...@@ -41,7 +41,7 @@ struct _NetBIOSTransport;
* a unique id (the transport_id of ACTION_HEADER, for example) and an * a unique id (the transport_id of ACTION_HEADER, for example) and an
* implementation. Returns TRUE on success, and FALSE on failure. * implementation. Returns TRUE on success, and FALSE on failure.
*/ */
BOOL NetBIOSRegisterTransport(ULONG id, struct _NetBIOSTransport *transport) DECLSPEC_HIDDEN; BOOL NetBIOSRegisterTransport(ULONG id, struct _NetBIOSTransport *transport);
/* Registers an adapter with the given transport and ifIndex with NetBIOS. /* Registers an adapter with the given transport and ifIndex with NetBIOS.
* ifIndex is an interface index usable by the IpHlpApi. ifIndex is not * ifIndex is an interface index usable by the IpHlpApi. ifIndex is not
...@@ -51,7 +51,7 @@ BOOL NetBIOSRegisterTransport(ULONG id, struct _NetBIOSTransport *transport) DEC ...@@ -51,7 +51,7 @@ BOOL NetBIOSRegisterTransport(ULONG id, struct _NetBIOSTransport *transport) DEC
* FIXME: need functions for retrieving the name and hardware index, rather * FIXME: need functions for retrieving the name and hardware index, rather
* than assuming a correlation with IpHlpApi. * than assuming a correlation with IpHlpApi.
*/ */
BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *adapter) DECLSPEC_HIDDEN; BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *adapter);
/* During enumeration, all adapters from your transport are disabled /* During enumeration, all adapters from your transport are disabled
* internally. If an adapter is still valid, re-enable it with this function. * internally. If an adapter is still valid, re-enable it with this function.
...@@ -59,13 +59,13 @@ BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *adapter) DECLS ...@@ -59,13 +59,13 @@ BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *adapter) DECLS
* function (see below) called on them, and will be removed from the table. * function (see below) called on them, and will be removed from the table.
* (This is to deal with lack of plug-and-play--sorry.) * (This is to deal with lack of plug-and-play--sorry.)
*/ */
void NetBIOSEnableAdapter(UCHAR lana) DECLSPEC_HIDDEN; void NetBIOSEnableAdapter(UCHAR lana);
/* Gets a quick count of the number of NetBIOS adapters. Not guaranteed not /* Gets a quick count of the number of NetBIOS adapters. Not guaranteed not
* to change from one call to the next, depending on what's been enumerated * to change from one call to the next, depending on what's been enumerated
* lately. See also NetBIOSEnumAdapters. * lately. See also NetBIOSEnumAdapters.
*/ */
UCHAR NetBIOSNumAdapters(void) DECLSPEC_HIDDEN; UCHAR NetBIOSNumAdapters(void);
typedef struct _NetBIOSAdapterImpl { typedef struct _NetBIOSAdapterImpl {
UCHAR lana; UCHAR lana;
...@@ -84,7 +84,7 @@ typedef BOOL (*NetBIOSEnumAdaptersCallback)(UCHAR totalLANAs, UCHAR lanaIndex, ...@@ -84,7 +84,7 @@ typedef BOOL (*NetBIOSEnumAdaptersCallback)(UCHAR totalLANAs, UCHAR lanaIndex,
* Your callback should return FALSE if it no longer wishes to be called. * Your callback should return FALSE if it no longer wishes to be called.
*/ */
void NetBIOSEnumAdapters(ULONG transport, NetBIOSEnumAdaptersCallback cb, void NetBIOSEnumAdapters(ULONG transport, NetBIOSEnumAdaptersCallback cb,
void *closure) DECLSPEC_HIDDEN; void *closure);
/* Hangs up the session identified in the NCB; the NCB need not be a NCBHANGUP. /* Hangs up the session identified in the NCB; the NCB need not be a NCBHANGUP.
* Will result in the transport's hangup function being called, so release any * Will result in the transport's hangup function being called, so release any
...@@ -92,7 +92,7 @@ void NetBIOSEnumAdapters(ULONG transport, NetBIOSEnumAdaptersCallback cb, ...@@ -92,7 +92,7 @@ void NetBIOSEnumAdapters(ULONG transport, NetBIOSEnumAdaptersCallback cb,
* This function is intended for use by a transport, if the session is closed * This function is intended for use by a transport, if the session is closed
* by some error in the transport layer. * by some error in the transport layer.
*/ */
void NetBIOSHangupSession(const NCB *ncb) DECLSPEC_HIDDEN; void NetBIOSHangupSession(const NCB *ncb);
/** /**
* Functions a transport implementation must implement * Functions a transport implementation must implement
...@@ -178,6 +178,6 @@ typedef struct _NetBIOSTransport ...@@ -178,6 +178,6 @@ typedef struct _NetBIOSTransport
/* Not defined by MS, so make my own private define: */ /* Not defined by MS, so make my own private define: */
#define TRANSPORT_NBT "MNBT" #define TRANSPORT_NBT "MNBT"
void NetBTInit(void) DECLSPEC_HIDDEN; void NetBTInit(void);
#endif /* ndef __WINE_NETBIOS_H__ */ #endif /* ndef __WINE_NETBIOS_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment