diff options
Diffstat (limited to 'glib/glibmm/property.h')
-rw-r--r-- | glib/glibmm/property.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/glib/glibmm/property.h b/glib/glibmm/property.h index daf92eca..5f553ccf 100644 --- a/glib/glibmm/property.h +++ b/glib/glibmm/property.h @@ -26,6 +26,7 @@ namespace Glib #ifndef DOXYGEN_SHOULD_SKIP_THIS +// TODO: When we can break ABI, remove custom_[get|set]_property_callback(). #ifdef GLIBMM_CXX_CAN_USE_NAMESPACES_INSIDE_EXTERNC // For the AIX xlC compiler, I can not find a way to do this without putting the functions in the // global namespace. murrayc @@ -44,6 +45,18 @@ void custom_set_property_callback( } // extern "C" #endif // GLIBMM_CXX_CAN_USE_NAMESPACES_INSIDE_EXTERNC +extern "C" +{ +GLIBMM_API +void glibmm_custom_get_property_callback( + GObject* object, unsigned int property_id, GValue* value, GParamSpec* param_spec); + +GLIBMM_API +void glibmm_custom_set_property_callback( + GObject* object, unsigned int property_id, const GValue* value, GParamSpec* param_spec); + +} // extern "C" + #endif /* DOXYGEN_SHOULD_SKIP_THIS */ /** This is the base class for Glib::Object properties. @@ -109,10 +122,10 @@ protected: private: #ifndef DOXYGEN_SHOULD_SKIP_THIS - friend void Glib::custom_get_property_callback( + friend void Glib::glibmm_custom_get_property_callback( GObject* object, unsigned int property_id, GValue* value, GParamSpec* param_spec); - friend void Glib::custom_set_property_callback( + friend void Glib::glibmm_custom_set_property_callback( GObject* object, unsigned int property_id, const GValue* value, GParamSpec* param_spec); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |