LibreOffice
LibreOffice 26.2 SDK C/C++ API Reference
Toggle main menu visibility
Loading...
Searching...
No Matches
unload.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
#ifndef INCLUDED_RTL_UNLOAD_H
24
#define INCLUDED_RTL_UNLOAD_H
25
26
#include "
sal/config.h
"
27
28
#include "
osl/interlck.h
"
29
#include "
osl/time.h
"
30
#include "
sal/saldllapi.h
"
31
#include "
sal/types.h
"
32
36
37
#ifdef __cplusplus
38
extern
"C"
39
{
40
#endif
41
46
typedef
struct
SAL_DLLPUBLIC_RTTI
_rtl_ModuleCount
47
{
48
void ( SAL_CALL *
acquire
) (
struct
_rtl_ModuleCount
* that );
49
void ( SAL_CALL *
release
) (
struct
_rtl_ModuleCount
* that );
50
}
rtl_ModuleCount
;
51
56
#define MODULE_COUNT_INIT \
57
{ {rtl_moduleCount_acquire,rtl_moduleCount_release}, rtl_moduleCount_canUnload, 0, {0, 0}}
58
63
typedef
struct
_rtl_StandardModuleCount
64
{
65
rtl_ModuleCount
modCnt
;
66
sal_Bool
( *
canUnload
) (
struct
_rtl_StandardModuleCount
* a,
TimeValue
* libUnused);
67
oslInterlockedCount
counter
;
68
TimeValue
unusedSince
;
69
}
rtl_StandardModuleCount
;
70
75
SAL_DLLPUBLIC
void
rtl_moduleCount_acquire
(
rtl_ModuleCount
* that ) SAL_COLD;
76
81
SAL_DLLPUBLIC
void
rtl_moduleCount_release
(
rtl_ModuleCount
* that ) SAL_COLD;
82
87
SAL_DLLPUBLIC
sal_Bool
rtl_moduleCount_canUnload
(
rtl_StandardModuleCount
* that,
TimeValue
* libUnused) SAL_COLD;
88
89
#ifdef __cplusplus
90
}
91
#endif
92
93
94
#endif
95
96
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
types.h
sal_Bool
unsigned char sal_Bool
Definition
types.h:38
saldllapi.h
SAL_DLLPUBLIC
#define SAL_DLLPUBLIC
Definition
saldllapi.h:34
config.h
rtl_moduleCount_release
SAL_DLLPUBLIC void rtl_moduleCount_release(rtl_ModuleCount *that) SAL_COLD
Backwards-compatibility remainder of a removed library unloading feature.
rtl_StandardModuleCount
struct _rtl_StandardModuleCount rtl_StandardModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
rtl_moduleCount_acquire
SAL_DLLPUBLIC void rtl_moduleCount_acquire(rtl_ModuleCount *that) SAL_COLD
Backwards-compatibility remainder of a removed library unloading feature.
rtl_moduleCount_canUnload
SAL_DLLPUBLIC sal_Bool rtl_moduleCount_canUnload(rtl_StandardModuleCount *that, TimeValue *libUnused) SAL_COLD
Backwards-compatibility remainder of a removed library unloading feature.
rtl_ModuleCount
struct SAL_DLLPUBLIC_RTTI _rtl_ModuleCount rtl_ModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
time.h
interlck.h
oslInterlockedCount
sal_Int32 oslInterlockedCount
Definition
interlck.h:44
_rtl_ModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
Definition
unload.h:47
_rtl_ModuleCount::release
void(* release)(struct _rtl_ModuleCount *that)
Definition
unload.h:49
_rtl_ModuleCount::acquire
void(* acquire)(struct _rtl_ModuleCount *that)
Definition
unload.h:48
_rtl_StandardModuleCount
Backwards-compatibility remainder of a removed library unloading feature.
Definition
unload.h:64
_rtl_StandardModuleCount::canUnload
sal_Bool(* canUnload)(struct _rtl_StandardModuleCount *a, TimeValue *libUnused)
Definition
unload.h:66
_rtl_StandardModuleCount::modCnt
rtl_ModuleCount modCnt
Definition
unload.h:65
_rtl_StandardModuleCount::unusedSince
TimeValue unusedSince
Definition
unload.h:68
_rtl_StandardModuleCount::counter
oslInterlockedCount counter
Definition
unload.h:67
TimeValue
Time since Jan-01-1970.
Definition
time.h:76
rtl
unload.h
Generated by
1.17.0