LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
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
33 extern "C" {
34 #endif
35 
36 #define OSL_SIGNAL_USER_RESERVED 0
37 
38 #define OSL_SIGNAL_USER_X11SUBSYSTEMERROR (OSL_SIGNAL_USER_RESERVED - 2)
39 
40 typedef void* oslSignalHandler;
41 
42 typedef enum
43 {
53 } oslSignal;
54 
55 typedef enum
56 {
63 
64 #ifdef _WIN32
65 # pragma pack(push, 8)
66 #endif
67 
68 typedef struct
69 {
71  sal_Int32 UserSignal;
72  void* UserData;
74 
75 #if defined( _WIN32)
76 # pragma pack(pop)
77 #endif
78 
81 typedef 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: */
Definition: signal.h:45
Definition: signal.h:60
Definition: signal.h:51
void * oslSignalHandler
Definition: signal.h:40
#define SAL_DLLPUBLIC
Definition: saldllapi.h:34
Definition: signal.h:68
Definition: signal.h:48
Definition: signal.h:49
oslSignal Signal
Definition: signal.h:70
Definition: signal.h:59
oslSignalAction
Definition: signal.h:55
unsigned char sal_Bool
Definition: types.h:38
Definition: signal.h:50
Definition: signal.h:46
Definition: signal.h:58
oslSignal
Definition: signal.h:42
SAL_DLLPUBLIC sal_Bool osl_setErrorReporting(sal_Bool bEnable)
Enables or disables error reporting.
void * UserData
Definition: signal.h:72
oslSignalAction(* oslSignalHandlerFunction)(void *pData, oslSignalInfo *pInfo)
The function-ptr representing the signal handler-function.
Definition: signal.h:81
SAL_DLLPUBLIC oslSignalHandler osl_addSignalHandler(oslSignalHandlerFunction Handler, void *pData)
Definition: signal.h:61
Definition: signal.h:47
Definition: signal.h:44
Definition: signal.h:52
SAL_DLLPUBLIC sal_Bool osl_removeSignalHandler(oslSignalHandler hHandler)
Definition: signal.h:57
#define SAL_MAX_ENUM
Definition: types.h:205
SAL_DLLPUBLIC oslSignalAction osl_raiseSignal(sal_Int32 UserSignal, void *UserData)
sal_Int32 UserSignal
Definition: signal.h:71