-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl16_decoder.h
More file actions
22 lines (17 loc) · 785 Bytes
/
l16_decoder.h
File metadata and controls
22 lines (17 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef L16_DECODER_H
#define L16_DECODER_H
#include <memory>
#include <vector>
#include <string>
#include <math.h>
#include "json.hpp"
#include <QtCore>
namespace L16_Decoder
{
//extern "C" __attribute__((visibility("default"))) int foobar(int length, char* data);
extern "C" __attribute__((visibility("default"))) char* decode_to_json(int length, char* data);
//extern "C" __attribute__((visibility("default"))) std::string decode_to_json(std::vector<uint8_t> const& data);
__attribute__((visibility("hidden"))) std::string decode_to_json(std::vector<uint8_t> const& data);
extern "C" __attribute__((visibility("default"))) void encode_from_json(std::vector<std::string> const& sequence, std::string const& json_info, std::vector<uint8_t>& data);
}
#endif // L16_DECODER_H