Files
jami-daemon/bin/jni/plugin_manager_interface.i
Pierre Nicolas b85165ae1a copyright: happy new year!
Change-Id: I2753c58c12d167ee5f7454e5a2ed893991c90e24
2025-01-08 11:02:33 -05:00

48 lines
2.4 KiB
OpenEdge ABL

/*
* Copyright (C) 2004-2025 Savoir-faire Linux Inc.
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
%header %{
#include "jami/jami.h"
#include "jami/plugin_manager_interface.h"
%}
namespace libjami {
bool loadPlugin(const std::string& path);
bool unloadPlugin(const std::string& path);
std::map<std::string,std::string> getPluginDetails(const std::string& path);
std::map<std::string, std::string> getPlatformInfo();
std::vector<std::map<std::string,std::string>> getPluginPreferences(const std::string& path, const std::string& accountId);
bool setPluginPreference(const std::string& path, const std::string& accountId, const std::string& key, const std::string& value);
std::map<std::string,std::string> getPluginPreferencesValues(const std::string& path, const std::string& accountId);
bool resetPluginPreferencesValues(const std::string& path, const std::string& accountId);
std::vector<std::string> getInstalledPlugins();
std::vector<std::string> getLoadedPlugins();
int installPlugin(const std::string& jplPath, bool force);
int uninstallPlugin(const std::string& pluginRootPath);
std::vector<std::string> getCallMediaHandlers();
std::vector<std::string> getChatHandlers();
void toggleCallMediaHandler(const std::string& mediaHandlerId, const std::string& callId, bool toggle);
void toggleChatHandler(const std::string& chatHandlerId, const std::string& accountId, const std::string& peerId, bool toggle);
std::map<std::string,std::string> getCallMediaHandlerDetails(const std::string& mediaHandlerId);
std::vector<std::string> getCallMediaHandlerStatus(const std::string& callId);
std::map<std::string,std::string> getChatHandlerDetails(const std::string& chatHandlerId);
std::vector<std::string> getChatHandlerStatus(const std::string& accountId, const std::string& peerId);
bool getPluginsEnabled();
void setPluginsEnabled(bool state);
}