diff options
| author | Qiuwen Lu <[email protected]> | 2016-12-07 19:29:28 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2016-12-07 19:29:28 +0800 |
| commit | e7312311de94cc2c99ea44631d73dcd87ba1adbf (patch) | |
| tree | 089b76bf2fcd1199638c888aecfa96a8b9fab3f8 | |
| parent | 2135c7dd4a03a885efe408a02482601708dfe560 (diff) | |
增加Debuginfo的自动创建功能
| -rw-r--r-- | cmake/Package.cmake | 1 | ||||
| -rw-r--r-- | include/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | include/external/marsio_udp_user_api.h | 20 |
3 files changed, 12 insertions, 12 deletions
diff --git a/cmake/Package.cmake b/cmake/Package.cmake index fd3344f..0c2684b 100644 --- a/cmake/Package.cmake +++ b/cmake/Package.cmake @@ -12,4 +12,5 @@ set(CPACK_RPM_PACKAGE_VENDOR "Mesasoft@IIE") set(CPACK_RPM_PACKAGE_AUTOREQPROV "no") set(CPACK_RPM_PACKAGE_REQUIRES "/boot/vmlinuz-${MARSIO_VERSION_KERNEL}") set(CPACK_RPM_PACKAGE_RELEASE_DIST on) +set(CPACK_RPM_DEBUGINFO_PACKAGE on) include(CPack)
\ No newline at end of file diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 84626d0..b803589 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,3 +1,4 @@ install(FILES external/marsio.h DESTINATION include COMPONENT Program)
install(FILES external/marsio_buffer_user_api.h DESTINATION include COMPONENT Program)
-install(FILES external/marsio_rawio_user_api.h DESTINATION include COMPONENT Program)
\ No newline at end of file +install(FILES external/marsio_rawio_user_api.h DESTINATION include COMPONENT Program)
+install(FILES external/marsio_udp_user_api.h DESTINATION include COMPONENT Program)
\ No newline at end of file diff --git a/include/external/marsio_udp_user_api.h b/include/external/marsio_udp_user_api.h index 1c564f6..a2332ec 100644 --- a/include/external/marsio_udp_user_api.h +++ b/include/external/marsio_udp_user_api.h @@ -1,17 +1,15 @@ -#pragma once
-
-#include <sys/socket.h>
-#include <errno.h>
-#include <rte_common.h>
-#include <unistd.h>
-
+#pragma once + +#include <sys/socket.h> +#include <unistd.h> + int marsio_socket(int family, int type, int protocol); int marsio_connect(int fd, const struct sockaddr * addr, socklen_t addrlen); -int marsio_bind(int fd, const struct sockaddr * addr, socklen_t addrlen);
+int marsio_bind(int fd, const struct sockaddr * addr, socklen_t addrlen); -/* UDP���Ļ�������ͬһ�����ϵĻ�������ʾͬһ��UDP���� */
+/* UDP���Ļ�������ͬһ�����ϵĻ�������ʾͬһ��UDP���� */ /* ����MARSIO-3�汾���¹��ܲ�Ҫʹ�� */ struct marsio_udp_buff { @@ -29,6 +27,6 @@ struct marsio_udp_buff * marsio_udp_alloc() __attribute__((__deprecated__)); void marsio_udp_free(struct marsio_udp_buff * udp_buff) __attribute__((__deprecated__)); -ssize_t marsio_udp_sendto_chain(int marsio_fd, struct marsio_udp_buff * chain_head,
- int nb_buff, int flags, struct sockaddr * to[], socklen_t addrlen[], int nb_sockaddrs)
+ssize_t marsio_udp_sendto_chain(int marsio_fd, struct marsio_udp_buff * chain_head, + int nb_buff, int flags, struct sockaddr * to[], socklen_t addrlen[], int nb_sockaddrs) __attribute__((__deprecated__));
\ No newline at end of file |
