LibreOffice
LibreOffice 24.8 SDK C/C++ API Reference
Loading...
Searching...
No Matches
signal.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20/*
21 * This file is part of LibreOffice published API.
22 */
23
24#ifndef INCLUDED_OSL_SIGNAL_H
25#define INCLUDED_OSL_SIGNAL_H
26
27#include "sal/config.h"
28
29#include "sal/saldllapi.h"
30#include "sal/types.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#define OSL_SIGNAL_USER_RESERVED 0
37
38#define OSL_SIGNAL_USER_X11SUBSYSTEMERROR (OSL_SIGNAL_USER_RESERVED - 2)
39
40typedef void* oslSignalHandler;
41
54
63
64#ifdef _WIN32
65# pragma pack(push, 8)
66#endif
67
68typedef struct
69{
71 sal_Int32 UserSignal;
72 void* UserData;
74
75#if defined( _WIN32)
76# pragma pack(pop)
77#endif
78
81typedef oslSignalAction (SAL_CALL *oslSignalHandlerFunction)(void* pData, oslSignalInfo* pInfo);
82
84 oslSignalHandlerFunction Handler, void* pData);
85
87 oslSignalHandler hHandler);
88
90 sal_Int32 UserSignal, void* UserData);
91
103 sal_Bool bEnable );
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif // INCLUDED_OSL_SIGNAL_H
110
111
112/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SAL_DLLPUBLIC
Definition saldllapi.h:34
#define SAL_MAX_ENUM
Definition types.h:205
unsigned char sal_Bool
Definition types.h:38
oslSignalAction(* oslSignalHandlerFunction)(void *pData, oslSignalInfo *pInfo)
The function-ptr representing the signal handler-function.
Definition signal.h:81
SAL_DLLPUBLIC sal_Bool osl_setErrorReporting(sal_Bool bEnable)
Enables or disables error reporting.
SAL_DLLPUBLIC oslSignalAction osl_raiseSignal(sal_Int32 UserSignal, void *UserData)
oslSignalAction
Definition signal.h:56
@ osl_Signal_ActAbortApp
Definition signal.h:59
@ osl_Signal_Act_FORCE_EQUAL_SIZE
Definition signal.h:61
@ osl_Signal_ActKillApp
Definition signal.h:60
@ osl_Signal_ActIgnore
Definition signal.h:58
@ osl_Signal_ActCallNextHdl
Definition signal.h:57
void * oslSignalHandler
Definition signal.h:40
SAL_DLLPUBLIC oslSignalHandler osl_addSignalHandler(oslSignalHandlerFunction Handler, void *pData)
SAL_DLLPUBLIC sal_Bool osl_removeSignalHandler(oslSignalHandler hHandler)
oslSignal
Definition signal.h:43
@ osl_Signal_FORCE_EQUAL_SIZE
Definition signal.h:52
@ osl_Signal_DebugBreak
Definition signal.h:49
@ osl_Signal_IntegerDivideByZero
Definition signal.h:47
@ osl_Signal_Terminate
Definition signal.h:45
@ osl_Signal_User
Definition signal.h:50
@ osl_Signal_AccessViolation
Definition signal.h:46
@ osl_Signal_FloatDivideByZero
Definition signal.h:48
@ osl_Signal_System
Definition signal.h:44
@ osl_Signal_Alarm
Definition signal.h:51
Definition signal.h:69
oslSignal Signal
Definition signal.h:70
void * UserData
Definition signal.h:72
sal_Int32 UserSignal
Definition signal.h:71