lib: add libmsg* ipc protocol libraries
This commit is contained in:
21
lib/libmsg/CMakeLists.txt
Normal file
21
lib/libmsg/CMakeLists.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
file(GLOB sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.c)
|
||||
file(GLOB headers
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/rosetta/msg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.h)
|
||||
|
||||
set(public_include_dirs
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
rosetta_add_library(
|
||||
NAME libmsg STATIC
|
||||
PUBLIC_INCLUDE_DIRS ${public_include_dirs}
|
||||
SOURCES ${sources}
|
||||
HEADERS ${headers})
|
||||
|
||||
sysroot_add_library(
|
||||
NAME libmsg
|
||||
HEADER_DIR /usr/include
|
||||
LIB_DIR /usr/lib)
|
||||
|
||||
target_link_libraries(libmsg libmango)
|
||||
15
lib/libmsg/include/rosetta/msg.h
Normal file
15
lib/libmsg/include/rosetta/msg.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef ROSETTA_MSG_H_
|
||||
#define ROSETTA_MSG_H_
|
||||
|
||||
#define ROSETTA_MSG_MAGIC 0x9AB07D10U
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct rosetta_msg {
|
||||
uint32_t msg_magic;
|
||||
uint32_t msg_protocol;
|
||||
uint16_t msg_id;
|
||||
uint16_t msg_reserved;
|
||||
};
|
||||
|
||||
#endif
|
||||
3
lib/libmsg/msg.c
Normal file
3
lib/libmsg/msg.c
Normal file
@@ -0,0 +1,3 @@
|
||||
void msg_tmp(void)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user