1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_RTL_UNLOAD_H
20 #define INCLUDED_RTL_UNLOAD_H
22 #include "sal/config.h"
24 #include "osl/interlck.h"
26 #include "sal/saldllapi.h"
27 #include "sal/types.h"
30 Backwards-compatibility remainders of a removed library unloading feature.
38 /** Backwards-compatibility remainder of a removed library unloading feature.
40 @deprecated Do not use.
42 typedef struct SAL_DLLPUBLIC_RTTI _rtl_ModuleCount
44 void ( SAL_CALL
* acquire
) ( struct _rtl_ModuleCount
* that
);
45 void ( SAL_CALL
* release
) ( struct _rtl_ModuleCount
* that
);
48 /** Backwards-compatibility remainder of a removed library unloading feature.
50 @deprecated Do not use.
52 #define MODULE_COUNT_INIT \
53 { {rtl_moduleCount_acquire,rtl_moduleCount_release}, rtl_moduleCount_canUnload, 0, {0, 0}}
55 /** Backwards-compatibility remainder of a removed library unloading feature.
57 @deprecated Do not use.
59 typedef struct _rtl_StandardModuleCount
61 rtl_ModuleCount modCnt
;
62 sal_Bool ( *canUnload
) ( struct _rtl_StandardModuleCount
* a
, TimeValue
* libUnused
);
63 oslInterlockedCount counter
;
64 TimeValue unusedSince
;
65 } rtl_StandardModuleCount
;
67 /** Backwards-compatibility remainder of a removed library unloading feature.
69 @deprecated Do not use.
71 SAL_DLLPUBLIC
void rtl_moduleCount_acquire(rtl_ModuleCount
* that
) SAL_COLD
;
73 /** Backwards-compatibility remainder of a removed library unloading feature.
75 @deprecated Do not use.
77 SAL_DLLPUBLIC
void rtl_moduleCount_release( rtl_ModuleCount
* that
) SAL_COLD
;
79 /** Backwards-compatibility remainder of a removed library unloading feature.
81 @deprecated Do not use.
83 SAL_DLLPUBLIC sal_Bool
rtl_moduleCount_canUnload( rtl_StandardModuleCount
* that
, TimeValue
* libUnused
) SAL_COLD
;
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */