Skip to content

Commit

Permalink
Build a static version of the automotive bus codec.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (CC/EMT2) <[email protected]>
  • Loading branch information
timrulebosch committed Oct 25, 2023
1 parent 1323434 commit b6823fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions dse/ncodec/codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,17 @@ typedef struct NCodecInstance {
DLL_PUBLIC NCodecCreate ncodec_create;

/* Implemented by integrator. */
DLL_PRIVATE int ncodec_load(const char* filename, const char* hint);
DLL_PRIVATE NCODEC* ncodec_open(
DLL_PUBLIC int ncodec_load(const char* filename, const char* hint);
DLL_PUBLIC NCODEC* ncodec_open(
const char* mime_type, NCodecStreamVTable* stream);

/* Provided by codec.c (in this package). */
DLL_PRIVATE void ncodec_config(NCODEC* nc, NCodecConfigItem item);
DLL_PRIVATE NCodecConfigItem ncodec_stat(NCODEC* nc, int* index);
DLL_PRIVATE int ncodec_write(NCODEC* nc, NCodecMessage* msg);
DLL_PRIVATE int ncodec_read(NCODEC* nc, NCodecMessage* msg);
DLL_PRIVATE int ncodec_flush(NCODEC* nc);
DLL_PRIVATE void ncodec_close(NCODEC* nc);
DLL_PUBLIC void ncodec_config(NCODEC* nc, NCodecConfigItem item);
DLL_PUBLIC NCodecConfigItem ncodec_stat(NCODEC* nc, int* index);
DLL_PUBLIC int ncodec_write(NCODEC* nc, NCodecMessage* msg);
DLL_PUBLIC int ncodec_read(NCODEC* nc, NCodecMessage* msg);
DLL_PUBLIC int ncodec_flush(NCODEC* nc);
DLL_PUBLIC void ncodec_close(NCODEC* nc);


#endif // DSE_NCODEC_CODEC_H_
2 changes: 1 addition & 1 deletion dse/ncodec/libs/automotive-bus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ set(FLATCC_SOURCE_FILES
# Targets
# =======
add_library(automotive-bus-codec
SHARED
STATIC
codec.c
frame_can_fbs.c
${FLATCC_SOURCE_FILES}
Expand Down
4 changes: 2 additions & 2 deletions dse/ncodec/libs/automotive-bus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ $ git clone https://github.com/boschglobal/dse.standards.git
$ cd dse.standards/dse/ncodec/libs/automotive-bus
$ make
...
$ ls build/*.so
build/libautomotive-bus-codec.so*
$ ls build/*.a
build/libautomotive-bus-codec.a*

# Testing
$ make test
Expand Down

0 comments on commit b6823fd

Please sign in to comment.