/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */

/*
    Rosegarden
    A MIDI and audio sequencer and musical notation editor.
    Copyright 2000-2026 the Rosegarden development team.

    Other copyrights also apply to some parts of this work.  Please
    see the AUTHORS file and individual file headers for details.

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
    published by the Free Software Foundation; either version 2 of the
    License, or (at your option) any later version.  See the file
    COPYING included with this distribution for more information.
*/

#ifndef RG_LV2GTK2SO_H
#define RG_LV2GTK2SO_H

#include <lv2/ui/ui.h>

#include "LV2Gtk2Types.h"


namespace Rosegarden
{


/// The shared object (librosegardenGtk.so) that wraps GTK2.
/**
 * This is used by LV2Gtk2 to get to GTK2 dynamically at runtime.
 */
namespace LV2Gtk2So
{

    extern "C" __attribute__((visibility("default")))
    void createLV2Gtk2So();

    extern "C" __attribute__((visibility("default")))
    LV2Gtk2Types::LV2Gtk2Widget getWidget(LV2UI_Widget lv2Widget,
                                          LV2Gtk2Types::SizeCallback* sizecb);

    extern "C" __attribute__((visibility("default")))
    void getSize(const LV2Gtk2Types::LV2Gtk2Widget& widget,
                 int& width,
                 int& height);

    extern "C" __attribute__((visibility("default")))
    long int getWinId(const LV2Gtk2Types::LV2Gtk2Widget& widget);

    extern "C" __attribute__((visibility("default")))
    void deleteWidget(const LV2Gtk2Types::LV2Gtk2Widget& widget);

    extern "C" __attribute__((visibility("default")))
    void shutDown();

}


}

#endif
