mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
A new class ('ScopedTempoMapOwner') exposes functions which need to be visible outside of libtemporal
(and since there's no 'scope.cc', libtemporal itself needs to #include scope.h for those symbols to get exported)
This commit is contained in:
parent
4490720afa
commit
d3a15b11ba
3 changed files with 5 additions and 3 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include "pbd/string_convert.h"
|
||||
|
||||
#include "temporal/debug.h"
|
||||
#include "temporal/scope.h"
|
||||
#include "temporal/tempo.h"
|
||||
#include "temporal/types_convert.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,10 +25,11 @@
|
|||
|
||||
#include "temporal/debug.h"
|
||||
#include "temporal/tempo.h"
|
||||
#include "temporal/visibility.h"
|
||||
|
||||
namespace Temporal {
|
||||
|
||||
class ScopedTempoMapOwner
|
||||
class LIBTEMPORAL_API ScopedTempoMapOwner
|
||||
{
|
||||
public:
|
||||
ScopedTempoMapOwner () : local_tempo_map_depth (0) {}
|
||||
|
|
|
|||
|
|
@ -1010,8 +1010,8 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
|
|||
|
||||
static void map_assert (bool expr, char const * exprstr, char const * file, int line);
|
||||
|
||||
void set_scope_owner (ScopedTempoMapOwner&);
|
||||
void clear_scope_owner ();
|
||||
LIBTEMPORAL_API void set_scope_owner (ScopedTempoMapOwner&);
|
||||
LIBTEMPORAL_API void clear_scope_owner ();
|
||||
ScopedTempoMapOwner* scope_owner() const { return _scope_owner; }
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue