Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0a6ba29e
Kaydet (Commit)
0a6ba29e
authored
Mar 12, 2013
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reshuffle declarations in typedescription.h to make forward-decls redundant
üst
a0809605
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
50 deletions
+46
-50
typedescription.h
cppu/inc/typelib/typedescription.h
+46
-50
No files found.
cppu/inc/typelib/typedescription.h
Dosyayı görüntüle @
0a6ba29e
...
@@ -868,56 +868,6 @@ void SAL_CALL typelib_typedescription_revokeCallback(
...
@@ -868,56 +868,6 @@ void SAL_CALL typelib_typedescription_revokeCallback(
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/** Returns true, if the type description reference may lose the type description. Otherwise
pType is a valid pointer and cannot be discarded through the lifetime of this reference.
Remark: If the pWeakObj of the type is set too, you can avoid the call of
...getDescription(...) and use the description directly. pWeakObj == 0 means, that the
description is not initialized.
@internal
*/
inline
bool
TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK
(
_typelib_TypeClass
eTypeClass
)
{
return
(
eTypeClass
==
typelib_TypeClass_INTERFACE_METHOD
)
||
(
eTypeClass
==
typelib_TypeClass_INTERFACE_ATTRIBUTE
);
}
/** Gets a description from the reference. The description may not be locked by this call.
You must use the TYPELIB_DANGER_RELEASE macro to release the description fetched with
this macro.
@internal
*/
inline
void
TYPELIB_DANGER_GET
(
typelib_TypeDescription
**
ppMacroTypeDescr
,
typelib_TypeDescriptionReference
*
pMacroTypeRef
)
{
void
SAL_CALL
typelib_typedescriptionreference_getDescription
(
typelib_TypeDescription
**
,
typelib_TypeDescriptionReference
*
)
SAL_THROW_EXTERN_C
();
if
(
TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK
(
pMacroTypeRef
->
eTypeClass
))
{
typelib_typedescriptionreference_getDescription
(
ppMacroTypeDescr
,
pMacroTypeRef
);
}
else
if
(
!
pMacroTypeRef
->
pType
||
!
pMacroTypeRef
->
pType
->
pWeakRef
)
{
typelib_typedescriptionreference_getDescription
(
ppMacroTypeDescr
,
pMacroTypeRef
);
if
(
*
ppMacroTypeDescr
)
typelib_typedescription_release
(
*
ppMacroTypeDescr
);
}
else
{
*
ppMacroTypeDescr
=
pMacroTypeRef
->
pType
;
}
}
/** Releases the description previouse fetched by TYPELIB_DANGER_GET.
@internal
*/
inline
void
TYPELIB_DANGER_RELEASE
(
typelib_TypeDescription
*
pDescription
)
{
void
SAL_CALL
typelib_typedescription_release
(
typelib_TypeDescription
*
)
SAL_THROW_EXTERN_C
();
if
(
TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK
(
pDescription
->
eTypeClass
))
typelib_typedescription_release
(
pDescription
);
}
/** Creates a type description reference. This is a weak reference not holding the description.
/** Creates a type description reference. This is a weak reference not holding the description.
If the description is already registered, the previous one is returned.
If the description is already registered, the previous one is returned.
...
@@ -1154,6 +1104,52 @@ sal_Bool SAL_CALL typelib_typedescription_complete(
...
@@ -1154,6 +1104,52 @@ sal_Bool SAL_CALL typelib_typedescription_complete(
typelib_TypeDescription
**
ppTypeDescr
)
typelib_TypeDescription
**
ppTypeDescr
)
SAL_THROW_EXTERN_C
();
SAL_THROW_EXTERN_C
();
/** Returns true, if the type description reference may lose the type description. Otherwise
pType is a valid pointer and cannot be discarded through the lifetime of this reference.
Remark: If the pWeakObj of the type is set too, you can avoid the call of
...getDescription(...) and use the description directly. pWeakObj == 0 means, that the
description is not initialized.
@internal
*/
inline
bool
TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK
(
_typelib_TypeClass
eTypeClass
)
{
return
(
eTypeClass
==
typelib_TypeClass_INTERFACE_METHOD
)
||
(
eTypeClass
==
typelib_TypeClass_INTERFACE_ATTRIBUTE
);
}
/** Gets a description from the reference. The description may not be locked by this call.
You must use the TYPELIB_DANGER_RELEASE macro to release the description fetched with
this macro.
@internal
*/
inline
void
TYPELIB_DANGER_GET
(
typelib_TypeDescription
**
ppMacroTypeDescr
,
typelib_TypeDescriptionReference
*
pMacroTypeRef
)
{
if
(
TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK
(
pMacroTypeRef
->
eTypeClass
))
{
typelib_typedescriptionreference_getDescription
(
ppMacroTypeDescr
,
pMacroTypeRef
);
}
else
if
(
!
pMacroTypeRef
->
pType
||
!
pMacroTypeRef
->
pType
->
pWeakRef
)
{
typelib_typedescriptionreference_getDescription
(
ppMacroTypeDescr
,
pMacroTypeRef
);
if
(
*
ppMacroTypeDescr
)
typelib_typedescription_release
(
*
ppMacroTypeDescr
);
}
else
{
*
ppMacroTypeDescr
=
pMacroTypeRef
->
pType
;
}
}
/** Releases the description previouse fetched by TYPELIB_DANGER_GET.
@internal
*/
inline
void
TYPELIB_DANGER_RELEASE
(
typelib_TypeDescription
*
pDescription
)
{
if
(
TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK
(
pDescription
->
eTypeClass
))
typelib_typedescription_release
(
pDescription
);
}
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment