Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
error: fix libuv and code-gen bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach authored and ZronekM committed Jun 22, 2019
1 parent 969bea4 commit 2fb2b17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/include/elektra/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef ELEKTRA_ERROR_H
#define ELEKTRA_ERROR_H

#include "types.h"
#include <kdb.h>
#include <stdbool.h>

Expand All @@ -28,6 +29,10 @@ const char * elektraErrorDescription (const ElektraError * error);

void elektraErrorReset (ElektraError ** error);

// for code-generation
ElektraError * elektraErrorConversionToString (KDBType sourceType, const char * keyname);
ElektraError * elektraErrorConversionFromString (KDBType targetType, const char * keyname, const char * sourceValue);

#ifdef __cplusplus
}
#undef Key
Expand Down
2 changes: 0 additions & 2 deletions src/include/kdbprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,6 @@ ElektraError * elektraErrorFromKey (Key * key);
ElektraError * elektraErrorKeyNotFound (const char * keyname);
ElektraError * elektraErrorWrongType (const char * keyname, KDBType expectedType, KDBType actualType);
ElektraError * elektraErrorNullError (const char * function);
ElektraError * elektraErrorConversionToString (KDBType sourceType, const char * keyname);
ElektraError * elektraErrorConversionFromString (KDBType targetType, const char * keyname, const char * sourceValue);

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/zeromqrecv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ add_plugin (zeromqrecv
if (ADDTESTING_PHASE)
check_binding_was_added ("io_uv" IS_INCLUDED)
if (BUILD_TESTING AND IS_INCLUDED)
if (BUILD_FULL OR BUILD_STATIC)
find_package (libuv 1 QUIET) # libuv is present; otherwise io_uv bindings would not be added
find_package (libuv QUIET) # libuv is present; otherwise io_uv bindings would not be added

if (BUILD_FULL OR BUILD_STATIC)
set (STATIC_LIBRARIES ${libuv_LIBRARIES})
endif ()

Expand Down

0 comments on commit 2fb2b17

Please sign in to comment.