mirror of
https://github.com/RetroShare/libretroshare.git
synced 2026-09-12 19:50:03 +05:00
Fix jsonapi generator and OpenSSL macro collisions
This commit is contained in:
parent
ffcfda9d02
commit
df1642bacd
@ -190,15 +190,17 @@ def processFile(file):
|
||||
orderedParamNames.append(pName)
|
||||
|
||||
for tmpPN in memberdef.findall('.//parametername'):
|
||||
tmpParam = paramsMap[tmpPN.text]
|
||||
tmpD = tmpPN.attrib['direction'] if 'direction' in tmpPN.attrib else ''
|
||||
pName = getText(tmpPN)
|
||||
if pName in paramsMap:
|
||||
tmpParam = paramsMap[pName]
|
||||
tmpD = tmpPN.attrib['direction'] if 'direction' in tmpPN.attrib else ''
|
||||
|
||||
if 'in' in tmpD:
|
||||
tmpParam._in = True
|
||||
hasInput = True
|
||||
if 'out' in tmpD:
|
||||
tmpParam._out = True
|
||||
hasOutput = True
|
||||
if 'in' in tmpD:
|
||||
tmpParam._in = True
|
||||
hasInput = True
|
||||
if 'out' in tmpD:
|
||||
tmpParam._out = True
|
||||
hasOutput = True
|
||||
|
||||
# Params sanity check
|
||||
for pmKey in paramsMap:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
/*******************************************************************************
|
||||
/*******************************************************************************
|
||||
* libretroshare/src/pqi: sslfns.h *
|
||||
* *
|
||||
* libretroshare: retroshare core library *
|
||||
@ -28,6 +28,13 @@
|
||||
|
||||
/******************** notify of new Cert **************************/
|
||||
|
||||
#ifdef X509_NAME
|
||||
#undef X509_NAME
|
||||
#endif
|
||||
#ifdef X509_EXTENSIONS
|
||||
#undef X509_EXTENSIONS
|
||||
#endif
|
||||
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/x509.h>
|
||||
|
||||
|
||||
@ -41,6 +41,10 @@ enum class RsTorManagerEventCode: uint8_t
|
||||
TOR_MANAGER_STOPPED = 0x06,
|
||||
};
|
||||
|
||||
#ifdef ERROR
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
// Status of the Tor hidden service setup/loaded by RS
|
||||
|
||||
enum class RsTorHiddenServiceStatus: uint8_t {
|
||||
|
||||
@ -38,6 +38,10 @@
|
||||
#include "util/rsmacrosugar.hpp"
|
||||
|
||||
|
||||
#ifdef ERROR
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
#ifdef __ANDROID__
|
||||
enum class RsLoggerCategories
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user