mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
tools: rename and category content into debug tools and services
1. Rename folder name with "_" 2. Category acrn_crashlog, acrn_log, acrn_trace into debug_tools folder and acrn_bridge, life_mngr, acrn_manager into services. Tracked-On: #5644 Signed-off-by: Xie, nanlin <nanlin.xie@intel.com>
This commit is contained in:
25
misc/debug_tools/acrn_crashlog/usercrash/include/protocol.h
Normal file
25
misc/debug_tools/acrn_crashlog/usercrash/include/protocol.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) <2018> Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef PROTOCOL_H
|
||||
#define PROTOCOL_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#define RESERVED_SOCKET_PREFIX "/tmp/"
|
||||
#define SOCKET_PATH_MAX 128
|
||||
|
||||
int create_socket_server(const char *name, int type);
|
||||
|
||||
int socket_local_client(const char *name, const size_t len, int type);
|
||||
ssize_t send_fd(int sockfd, const void *data, size_t len, int fd);
|
||||
ssize_t recv_fd(int sockfd, void *data, size_t len, int *out_fd);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user