Skip to content

Commit

Permalink
[JSONIFY] Make sure there is JSONRPC code for the IValuePoint, in cas…
Browse files Browse the repository at this point in the history
…e we need it ;-) (#275)
  • Loading branch information
pwielders authored Aug 10, 2023
1 parent dea3355 commit 917e4a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion interfaces/ICryptography.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace Exchange {
virtual uint32_t Derive(const uint32_t privateKey, const uint32_t peerPublicKeyId, uint32_t& secretId /* @out */) = 0;
};

struct IPersistent : virtual public Core::IUnknown {
struct EXTERNAL IPersistent : virtual public Core::IUnknown {

enum { ID = ID_PERSISTENT };

Expand Down
15 changes: 7 additions & 8 deletions interfaces/IValuePoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
namespace WPEFramework {
namespace Exchange {

/* json */
/* @json */
struct EXTERNAL IValuePoint : virtual public Core::IUnknown {
enum { ID = ID_VALUE_POINT };

/* json omit */
struct EXTERNAL ICatalog : virtual public Core::IUnknown {
enum { ID = ID_VALUE_POINT_CATALOG };

Expand All @@ -45,7 +44,7 @@ namespace Exchange {
virtual IValuePoint* Resource(const uint32_t id) = 0;
};

/* event */
/* @event */
struct EXTERNAL INotification : virtual public Core::IUnknown {
enum { ID = ID_VALUE_POINT_NOTIFICATION };

Expand Down Expand Up @@ -165,15 +164,15 @@ namespace Exchange {
// ------------------------------------------------------------------------
// Convenience methods to extract interesting information from the Type()
// ------------------------------------------------------------------------
/* json:omit */
/* @json:omit */
static basic Basic(const uint32_t instanceType);
/* json:omit */
/* @json:omit */
static dimension Dimension(const uint32_t instanceType);
/* json:omit */
/* @json:omit */
static specific Specific(const uint32_t instanceType);
/* json:omit */
/* @json:omit */
static uint8_t Decimals(const uint32_t instanceType);
/* json:omit */
/* @json:omit */
static uint32_t Type(const basic base, const specific spec, const dimension dim, const uint8_t decimals);
};

Expand Down

0 comments on commit 917e4a4

Please sign in to comment.