Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XBPython.cpp File Reference
#include <mutex>
#include <Python.h>
#include "XBPython.h"
#include "ServiceBroker.h"
#include "Util.h"
#include "filesystem/SpecialProtocol.h"
#include "interfaces/AnnouncementManager.h"
#include "interfaces/legacy/AddonUtils.h"
#include "interfaces/legacy/Monitor.h"
#include "interfaces/python/AddonPythonInvoker.h"
#include "interfaces/python/PythonInvoker.h"
#include "settings/AdvancedSettings.h"
#include "settings/SettingsComponent.h"
#include "utils/CharsetConverter.h"
#include "utils/JSONVariantWriter.h"
#include "utils/Variant.h"
#include "utils/log.h"
#include <algorithm>

Macros

#define LOCK_AND_COPY(type, dest, src)
 
#define CHECK_FOR_ENTRY(l, v)
 

Variables

PyThreadState * savestate
 

Macro Definition Documentation

◆ CHECK_FOR_ENTRY

#define CHECK_FOR_ENTRY ( l,
v )
Value:
(l.hadSomethingRemoved ? (std::find(l.begin(), l.end(), v) != l.end()) : true)

◆ LOCK_AND_COPY

#define LOCK_AND_COPY ( type,
dest,
src )
Value:
if (!m_bInitialized) \
return; \
std::unique_lock<CCriticalSection> lock(src); \
src.hadSomethingRemoved = false; \
type dest; \
dest = src

Variable Documentation

◆ savestate

PyThreadState* savestate