Commit 717bd664 authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Default to the cdecl calling convention in client/server functions.

parent e8567110
...@@ -89,11 +89,11 @@ void __RPC_USER ept_lookup_handle_t_rundown(ept_lookup_handle_t entry_handle) ...@@ -89,11 +89,11 @@ void __RPC_USER ept_lookup_handle_t_rundown(ept_lookup_handle_t entry_handle)
WINE_FIXME("%p\n", entry_handle); WINE_FIXME("%p\n", entry_handle);
} }
void ept_insert(handle_t h, void __cdecl ept_insert(handle_t h,
unsigned32 num_ents, unsigned32 num_ents,
ept_entry_t entries[], ept_entry_t entries[],
boolean32 replace, boolean32 replace,
error_status_t *status) error_status_t *status)
{ {
unsigned32 i; unsigned32 i;
RPC_STATUS rpc_status; RPC_STATUS rpc_status;
...@@ -139,10 +139,10 @@ void ept_insert(handle_t h, ...@@ -139,10 +139,10 @@ void ept_insert(handle_t h,
LeaveCriticalSection(&csEpm); LeaveCriticalSection(&csEpm);
} }
void ept_delete(handle_t h, void __cdecl ept_delete(handle_t h,
unsigned32 num_ents, unsigned32 num_ents,
ept_entry_t entries[], ept_entry_t entries[],
error_status_t *status) error_status_t *status)
{ {
unsigned32 i; unsigned32 i;
RPC_STATUS rpc_status; RPC_STATUS rpc_status;
...@@ -180,30 +180,30 @@ void ept_delete(handle_t h, ...@@ -180,30 +180,30 @@ void ept_delete(handle_t h,
LeaveCriticalSection(&csEpm); LeaveCriticalSection(&csEpm);
} }
void ept_lookup(handle_t h, void __cdecl ept_lookup(handle_t h,
unsigned32 inquiry_type, unsigned32 inquiry_type,
uuid_p_t object, uuid_p_t object,
rpc_if_id_p_t interface_id, rpc_if_id_p_t interface_id,
unsigned32 vers_option, unsigned32 vers_option,
ept_lookup_handle_t *entry_handle, ept_lookup_handle_t *entry_handle,
unsigned32 max_ents, unsigned32 max_ents,
unsigned32 *num_ents, unsigned32 *num_ents,
ept_entry_t entries[], ept_entry_t entries[],
error_status_t *status) error_status_t *status)
{ {
WINE_FIXME("(%p, %p, %p): stub\n", h, entry_handle, status); WINE_FIXME("(%p, %p, %p): stub\n", h, entry_handle, status);
*status = EPT_S_CANT_PERFORM_OP; *status = EPT_S_CANT_PERFORM_OP;
} }
void ept_map(handle_t h, void __cdecl ept_map(handle_t h,
uuid_p_t object, uuid_p_t object,
twr_p_t map_tower, twr_p_t map_tower,
ept_lookup_handle_t *entry_handle, ept_lookup_handle_t *entry_handle,
unsigned32 max_towers, unsigned32 max_towers,
unsigned32 *num_towers, unsigned32 *num_towers,
twr_p_t *towers, twr_p_t *towers,
error_status_t *status) error_status_t *status)
{ {
RPC_STATUS rpc_status; RPC_STATUS rpc_status;
RPC_SYNTAX_IDENTIFIER iface, syntax; RPC_SYNTAX_IDENTIFIER iface, syntax;
...@@ -254,29 +254,29 @@ void ept_map(handle_t h, ...@@ -254,29 +254,29 @@ void ept_map(handle_t h,
LeaveCriticalSection(&csEpm); LeaveCriticalSection(&csEpm);
} }
void ept_lookup_handle_free(handle_t h, void __cdecl ept_lookup_handle_free(handle_t h,
ept_lookup_handle_t *entry_handle, ept_lookup_handle_t *entry_handle,
error_status_t *status) error_status_t *status)
{ {
WINE_FIXME("(%p, %p, %p): stub\n", h, entry_handle, status); WINE_FIXME("(%p, %p, %p): stub\n", h, entry_handle, status);
*status = EPT_S_CANT_PERFORM_OP; *status = EPT_S_CANT_PERFORM_OP;
} }
void ept_inq_object(handle_t h, void __cdecl ept_inq_object(handle_t h,
GUID *ept_object, GUID *ept_object,
error_status_t *status) error_status_t *status)
{ {
WINE_FIXME("(%p, %p, %p): stub\n", h, ept_object, status); WINE_FIXME("(%p, %p, %p): stub\n", h, ept_object, status);
*status = EPT_S_CANT_PERFORM_OP; *status = EPT_S_CANT_PERFORM_OP;
} }
void ept_mgmt_delete(handle_t h, void __cdecl ept_mgmt_delete(handle_t h,
boolean32 object_speced, boolean32 object_speced,
uuid_p_t object, uuid_p_t object,
twr_p_t tower, twr_p_t tower,
error_status_t *status) error_status_t *status)
{ {
WINE_FIXME("(%p, %d, %p, %p, %p): stub\n", h, object_speced, object, tower, status); WINE_FIXME("(%p, %d, %p, %p, %p): stub\n", h, object_speced, object, tower, status);
......
...@@ -68,7 +68,7 @@ static inline void rot_entry_release(struct rot_entry *rot_entry) ...@@ -68,7 +68,7 @@ static inline void rot_entry_release(struct rot_entry *rot_entry)
} }
} }
HRESULT IrotRegister( HRESULT __cdecl IrotRegister(
IrotHandle h, IrotHandle h,
const MonikerComparisonData *data, const MonikerComparisonData *data,
const InterfaceData *obj, const InterfaceData *obj,
...@@ -148,7 +148,7 @@ HRESULT IrotRegister( ...@@ -148,7 +148,7 @@ HRESULT IrotRegister(
return hr; return hr;
} }
HRESULT IrotRevoke( HRESULT __cdecl IrotRevoke(
IrotHandle h, IrotHandle h,
IrotCookie cookie, IrotCookie cookie,
IrotContextHandle *ctxt_handle, IrotContextHandle *ctxt_handle,
...@@ -195,7 +195,7 @@ HRESULT IrotRevoke( ...@@ -195,7 +195,7 @@ HRESULT IrotRevoke(
return E_INVALIDARG; return E_INVALIDARG;
} }
HRESULT IrotIsRunning( HRESULT __cdecl IrotIsRunning(
IrotHandle h, IrotHandle h,
const MonikerComparisonData *data) const MonikerComparisonData *data)
{ {
...@@ -220,7 +220,7 @@ HRESULT IrotIsRunning( ...@@ -220,7 +220,7 @@ HRESULT IrotIsRunning(
return hr; return hr;
} }
HRESULT IrotGetObject( HRESULT __cdecl IrotGetObject(
IrotHandle h, IrotHandle h,
const MonikerComparisonData *moniker_data, const MonikerComparisonData *moniker_data,
PInterfaceData *obj, PInterfaceData *obj,
...@@ -262,7 +262,7 @@ HRESULT IrotGetObject( ...@@ -262,7 +262,7 @@ HRESULT IrotGetObject(
return MK_E_UNAVAILABLE; return MK_E_UNAVAILABLE;
} }
HRESULT IrotNoteChangeTime( HRESULT __cdecl IrotNoteChangeTime(
IrotHandle h, IrotHandle h,
IrotCookie cookie, IrotCookie cookie,
const FILETIME *last_modified_time) const FILETIME *last_modified_time)
...@@ -286,7 +286,7 @@ HRESULT IrotNoteChangeTime( ...@@ -286,7 +286,7 @@ HRESULT IrotNoteChangeTime(
return E_INVALIDARG; return E_INVALIDARG;
} }
HRESULT IrotGetTimeOfLastChange( HRESULT __cdecl IrotGetTimeOfLastChange(
IrotHandle h, IrotHandle h,
const MonikerComparisonData *moniker_data, const MonikerComparisonData *moniker_data,
FILETIME *time) FILETIME *time)
...@@ -314,7 +314,7 @@ HRESULT IrotGetTimeOfLastChange( ...@@ -314,7 +314,7 @@ HRESULT IrotGetTimeOfLastChange(
return hr; return hr;
} }
HRESULT IrotEnumRunning( HRESULT __cdecl IrotEnumRunning(
IrotHandle h, IrotHandle h,
PInterfaceList *list) PInterfaceList *list)
{ {
......
...@@ -147,7 +147,7 @@ static DWORD validate_service_handle(SC_RPC_HANDLE handle, DWORD needed_access, ...@@ -147,7 +147,7 @@ static DWORD validate_service_handle(SC_RPC_HANDLE handle, DWORD needed_access,
return err; return err;
} }
DWORD svcctl_OpenSCManagerW( DWORD __cdecl svcctl_OpenSCManagerW(
MACHINE_HANDLEW MachineName, /* Note: this parameter is ignored */ MACHINE_HANDLEW MachineName, /* Note: this parameter is ignored */
LPCWSTR DatabaseName, LPCWSTR DatabaseName,
DWORD dwAccessMask, DWORD dwAccessMask,
...@@ -204,7 +204,7 @@ static void SC_RPC_HANDLE_destroy(SC_RPC_HANDLE handle) ...@@ -204,7 +204,7 @@ static void SC_RPC_HANDLE_destroy(SC_RPC_HANDLE handle)
} }
} }
DWORD svcctl_GetServiceDisplayNameW( DWORD __cdecl svcctl_GetServiceDisplayNameW(
SC_RPC_HANDLE hSCManager, SC_RPC_HANDLE hSCManager,
LPCWSTR lpServiceName, LPCWSTR lpServiceName,
WCHAR *lpBuffer, WCHAR *lpBuffer,
...@@ -250,7 +250,7 @@ DWORD svcctl_GetServiceDisplayNameW( ...@@ -250,7 +250,7 @@ DWORD svcctl_GetServiceDisplayNameW(
return err; return err;
} }
DWORD svcctl_GetServiceKeyNameW( DWORD __cdecl svcctl_GetServiceKeyNameW(
SC_RPC_HANDLE hSCManager, SC_RPC_HANDLE hSCManager,
LPCWSTR lpServiceDisplayName, LPCWSTR lpServiceDisplayName,
WCHAR *lpBuffer, WCHAR *lpBuffer,
...@@ -315,7 +315,7 @@ static DWORD create_handle_for_service(struct service_entry *entry, DWORD dwDesi ...@@ -315,7 +315,7 @@ static DWORD create_handle_for_service(struct service_entry *entry, DWORD dwDesi
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
DWORD svcctl_OpenServiceW( DWORD __cdecl svcctl_OpenServiceW(
SC_RPC_HANDLE hSCManager, SC_RPC_HANDLE hSCManager,
LPCWSTR lpServiceName, LPCWSTR lpServiceName,
DWORD dwDesiredAccess, DWORD dwDesiredAccess,
...@@ -416,7 +416,7 @@ static DWORD parse_dependencies(const WCHAR *dependencies, struct service_entry ...@@ -416,7 +416,7 @@ static DWORD parse_dependencies(const WCHAR *dependencies, struct service_entry
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
DWORD svcctl_CreateServiceW( DWORD __cdecl svcctl_CreateServiceW(
SC_RPC_HANDLE hSCManager, SC_RPC_HANDLE hSCManager,
LPCWSTR lpServiceName, LPCWSTR lpServiceName,
LPCWSTR lpDisplayName, LPCWSTR lpDisplayName,
...@@ -510,7 +510,7 @@ DWORD svcctl_CreateServiceW( ...@@ -510,7 +510,7 @@ DWORD svcctl_CreateServiceW(
return create_handle_for_service(entry, dwDesiredAccess, phService); return create_handle_for_service(entry, dwDesiredAccess, phService);
} }
DWORD svcctl_DeleteService( DWORD __cdecl svcctl_DeleteService(
SC_RPC_HANDLE hService) SC_RPC_HANDLE hService)
{ {
struct sc_service_handle *service; struct sc_service_handle *service;
...@@ -533,7 +533,7 @@ DWORD svcctl_DeleteService( ...@@ -533,7 +533,7 @@ DWORD svcctl_DeleteService(
return err; return err;
} }
DWORD svcctl_QueryServiceConfigW( DWORD __cdecl svcctl_QueryServiceConfigW(
SC_RPC_HANDLE hService, SC_RPC_HANDLE hService,
QUERY_SERVICE_CONFIGW *config) QUERY_SERVICE_CONFIGW *config)
{ {
...@@ -560,7 +560,7 @@ DWORD svcctl_QueryServiceConfigW( ...@@ -560,7 +560,7 @@ DWORD svcctl_QueryServiceConfigW(
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
DWORD svcctl_ChangeServiceConfigW( DWORD __cdecl svcctl_ChangeServiceConfigW(
SC_RPC_HANDLE hService, SC_RPC_HANDLE hService,
DWORD dwServiceType, DWORD dwServiceType,
DWORD dwStartType, DWORD dwStartType,
...@@ -673,7 +673,7 @@ DWORD svcctl_ChangeServiceConfigW( ...@@ -673,7 +673,7 @@ DWORD svcctl_ChangeServiceConfigW(
return err; return err;
} }
DWORD svcctl_SetServiceStatus( DWORD __cdecl svcctl_SetServiceStatus(
SC_RPC_HANDLE hServiceStatus, SC_RPC_HANDLE hServiceStatus,
LPSERVICE_STATUS lpServiceStatus) LPSERVICE_STATUS lpServiceStatus)
{ {
...@@ -703,7 +703,7 @@ DWORD svcctl_SetServiceStatus( ...@@ -703,7 +703,7 @@ DWORD svcctl_SetServiceStatus(
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
DWORD svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE_CONFIG2W *config ) DWORD __cdecl svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE_CONFIG2W *config )
{ {
struct sc_service_handle *service; struct sc_service_handle *service;
DWORD err; DWORD err;
...@@ -745,8 +745,8 @@ DWORD svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE ...@@ -745,8 +745,8 @@ DWORD svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE
return err; return err;
} }
DWORD svcctl_QueryServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, DWORD __cdecl svcctl_QueryServiceConfig2W( SC_RPC_HANDLE hService, DWORD level,
BYTE *buffer, DWORD size, LPDWORD needed ) BYTE *buffer, DWORD size, LPDWORD needed )
{ {
struct sc_service_handle *service; struct sc_service_handle *service;
DWORD err; DWORD err;
...@@ -789,7 +789,7 @@ DWORD svcctl_QueryServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, ...@@ -789,7 +789,7 @@ DWORD svcctl_QueryServiceConfig2W( SC_RPC_HANDLE hService, DWORD level,
return err; return err;
} }
DWORD svcctl_QueryServiceStatusEx( DWORD __cdecl svcctl_QueryServiceStatusEx(
SC_RPC_HANDLE hService, SC_RPC_HANDLE hService,
SC_STATUS_TYPE InfoLevel, SC_STATUS_TYPE InfoLevel,
BYTE *lpBuffer, BYTE *lpBuffer,
...@@ -948,7 +948,7 @@ static BOOL service_send_control(struct service_entry *service, HANDLE pipe, DWO ...@@ -948,7 +948,7 @@ static BOOL service_send_control(struct service_entry *service, HANDLE pipe, DWO
return r; return r;
} }
DWORD svcctl_StartServiceW( DWORD __cdecl svcctl_StartServiceW(
SC_RPC_HANDLE hService, SC_RPC_HANDLE hService,
DWORD dwNumServiceArgs, DWORD dwNumServiceArgs,
LPCWSTR *lpServiceArgVectors) LPCWSTR *lpServiceArgVectors)
...@@ -966,7 +966,7 @@ DWORD svcctl_StartServiceW( ...@@ -966,7 +966,7 @@ DWORD svcctl_StartServiceW(
return err; return err;
} }
DWORD svcctl_ControlService( DWORD __cdecl svcctl_ControlService(
SC_RPC_HANDLE hService, SC_RPC_HANDLE hService,
DWORD dwControl, DWORD dwControl,
SERVICE_STATUS *lpServiceStatus) SERVICE_STATUS *lpServiceStatus)
...@@ -1080,7 +1080,7 @@ DWORD svcctl_ControlService( ...@@ -1080,7 +1080,7 @@ DWORD svcctl_ControlService(
} }
} }
DWORD svcctl_CloseServiceHandle( DWORD __cdecl svcctl_CloseServiceHandle(
SC_RPC_HANDLE *handle) SC_RPC_HANDLE *handle)
{ {
WINE_TRACE("(&%p)\n", *handle); WINE_TRACE("(&%p)\n", *handle);
...@@ -1103,7 +1103,7 @@ void __RPC_USER SC_RPC_LOCK_rundown(SC_RPC_LOCK hLock) ...@@ -1103,7 +1103,7 @@ void __RPC_USER SC_RPC_LOCK_rundown(SC_RPC_LOCK hLock)
SC_RPC_LOCK_destroy(hLock); SC_RPC_LOCK_destroy(hLock);
} }
DWORD svcctl_LockServiceDatabase( DWORD __cdecl svcctl_LockServiceDatabase(
SC_RPC_HANDLE hSCManager, SC_RPC_HANDLE hSCManager,
SC_RPC_LOCK *phLock) SC_RPC_LOCK *phLock)
{ {
...@@ -1133,7 +1133,7 @@ DWORD svcctl_LockServiceDatabase( ...@@ -1133,7 +1133,7 @@ DWORD svcctl_LockServiceDatabase(
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
DWORD svcctl_UnlockServiceDatabase( DWORD __cdecl svcctl_UnlockServiceDatabase(
SC_RPC_LOCK *phLock) SC_RPC_LOCK *phLock)
{ {
WINE_TRACE("(&%p)\n", *phLock); WINE_TRACE("(&%p)\n", *phLock);
...@@ -1166,7 +1166,7 @@ static BOOL map_state(DWORD state, DWORD mask) ...@@ -1166,7 +1166,7 @@ static BOOL map_state(DWORD state, DWORD mask)
return FALSE; return FALSE;
} }
DWORD svcctl_EnumServicesStatusW( DWORD __cdecl svcctl_EnumServicesStatusW(
SC_RPC_HANDLE hmngr, SC_RPC_HANDLE hmngr,
DWORD type, DWORD type,
DWORD state, DWORD state,
...@@ -1260,7 +1260,7 @@ static BOOL match_group(const WCHAR *g1, const WCHAR *g2) ...@@ -1260,7 +1260,7 @@ static BOOL match_group(const WCHAR *g1, const WCHAR *g2)
return FALSE; return FALSE;
} }
DWORD svcctl_EnumServicesStatusExW( DWORD __cdecl svcctl_EnumServicesStatusExW(
SC_RPC_HANDLE hmngr, SC_RPC_HANDLE hmngr,
DWORD type, DWORD type,
DWORD state, DWORD state,
...@@ -1345,164 +1345,141 @@ DWORD svcctl_EnumServicesStatusExW( ...@@ -1345,164 +1345,141 @@ DWORD svcctl_EnumServicesStatusExW(
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
DWORD svcctl_QueryServiceObjectSecurity( DWORD __cdecl svcctl_QueryServiceObjectSecurity(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_SetServiceObjectSecurity( DWORD __cdecl svcctl_SetServiceObjectSecurity(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_QueryServiceStatus( DWORD __cdecl svcctl_QueryServiceStatus(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_NotifyBootConfigStatus( DWORD __cdecl svcctl_NotifyBootConfigStatus(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_SCSetServiceBitsW( DWORD __cdecl svcctl_SCSetServiceBitsW(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_EnumDependentServicesW( DWORD __cdecl svcctl_EnumDependentServicesW(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_QueryServiceLockStatusW( DWORD __cdecl svcctl_QueryServiceLockStatusW(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_SCSetServiceBitsA( DWORD __cdecl svcctl_SCSetServiceBitsA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_ChangeServiceConfigA( DWORD __cdecl svcctl_ChangeServiceConfigA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_CreateServiceA( DWORD __cdecl svcctl_CreateServiceA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_EnumDependentServicesA( DWORD __cdecl svcctl_EnumDependentServicesA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_EnumServicesStatusA( DWORD __cdecl svcctl_EnumServicesStatusA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_OpenSCManagerA( DWORD __cdecl svcctl_OpenSCManagerA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_OpenServiceA( DWORD __cdecl svcctl_OpenServiceA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_QueryServiceConfigA( DWORD __cdecl svcctl_QueryServiceConfigA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_QueryServiceLockStatusA( DWORD __cdecl svcctl_QueryServiceLockStatusA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_StartServiceA( DWORD __cdecl svcctl_StartServiceA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_GetServiceDisplayNameA( DWORD __cdecl svcctl_GetServiceDisplayNameA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_GetServiceKeyNameA( DWORD __cdecl svcctl_GetServiceKeyNameA(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_GetCurrentGroupStateW( DWORD __cdecl svcctl_GetCurrentGroupStateW(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_EnumServiceGroupW( DWORD __cdecl svcctl_EnumServiceGroupW(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_ChangeServiceConfig2A( DWORD __cdecl svcctl_ChangeServiceConfig2A(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
} }
DWORD svcctl_QueryServiceConfig2A( DWORD __cdecl svcctl_QueryServiceConfig2A(void)
void)
{ {
WINE_FIXME("\n"); WINE_FIXME("\n");
return ERROR_CALL_NOT_IMPLEMENTED; return ERROR_CALL_NOT_IMPLEMENTED;
......
...@@ -78,9 +78,9 @@ static void write_client_func_decl( const type_t *iface, const var_t *func ) ...@@ -78,9 +78,9 @@ static void write_client_func_decl( const type_t *iface, const var_t *func )
const var_list_t *args = type_get_function_args(func->type); const var_list_t *args = type_get_function_args(func->type);
type_t *rettype = type_function_get_rettype(func->type); type_t *rettype = type_function_get_rettype(func->type);
if (!callconv) callconv = "__cdecl";
write_type_decl_left(client, rettype); write_type_decl_left(client, rettype);
if (needs_space_after(rettype)) fprintf(client, " "); fprintf(client, " %s ", callconv);
if (callconv) fprintf(client, "%s ", callconv);
fprintf(client, "%s%s(\n", prefix_client, get_name(func)); fprintf(client, "%s%s(\n", prefix_client, get_name(func));
indent++; indent++;
if (args) if (args)
......
...@@ -994,10 +994,10 @@ static void write_function_proto(FILE *header, const type_t *iface, const var_t ...@@ -994,10 +994,10 @@ static void write_function_proto(FILE *header, const type_t *iface, const var_t
{ {
const char *callconv = get_attrp(fun->type->attrs, ATTR_CALLCONV); const char *callconv = get_attrp(fun->type->attrs, ATTR_CALLCONV);
if (!callconv) callconv = "__cdecl";
/* FIXME: do we need to handle call_as? */ /* FIXME: do we need to handle call_as? */
write_type_decl_left(header, type_function_get_rettype(fun->type)); write_type_decl_left(header, type_function_get_rettype(fun->type));
fprintf(header, " "); fprintf(header, " %s ", callconv);
if (callconv) fprintf(header, "%s ", callconv);
fprintf(header, "%s%s(\n", prefix, get_name(fun)); fprintf(header, "%s%s(\n", prefix, get_name(fun));
if (type_get_function_args(fun->type)) if (type_get_function_args(fun->type))
write_args(header, type_get_function_args(fun->type), iface->name, 0, TRUE); write_args(header, type_get_function_args(fun->type), iface->name, 0, TRUE);
......
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