#include <list>
#include <cassert>
+#include "pbd/libpbd_visibility.h"
#include "pbd/id.h"
#include "pbd/xml++.h"
#include "pbd/property_basics.h"
class OwnedPropertyList;
/** Base class for objects with saveable and undoable state */
-class Stateful {
+class LIBPBD_API Stateful {
public:
Stateful ();
virtual ~Stateful();
virtual void suspend_property_changes ();
virtual void resume_property_changes ();
- bool property_changes_suspended() const { return g_atomic_int_get (&_stateful_frozen) > 0; }
+ bool property_changes_suspended() const { return g_atomic_int_get (const_cast<gint*>(&_stateful_frozen)) > 0; }
protected:
- void add_instant_xml (XMLNode&, const sys::path& directory_path);
- XMLNode *instant_xml (const std::string& str, const sys::path& directory_path);
+ void add_instant_xml (XMLNode&, const std::string& directory_path);
+ XMLNode *instant_xml (const std::string& str, const std::string& directory_path);
void add_properties (XMLNode &);
PropertyChange set_values (XMLNode const &);
XMLNode *_extra_xml;
XMLNode *_instant_xml;
PBD::PropertyChange _pending_changed;
- Glib::Mutex _lock;
+ Glib::Threads::Mutex _lock;
std::string _xml_node_name; ///< name of node to use for this object in XML
OwnedPropertyList* _properties;
private:
PBD::ID _id;
- int32_t _stateful_frozen;
+ gint _stateful_frozen;
};
} // namespace PBD