mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
39 lines
627 B
C++
Executable File
39 lines
627 B
C++
Executable File
/**
|
|
* @file libipc/def.h
|
|
* @author mutouyun (orz@orzz.org)
|
|
* @brief Define the trivial configuration information
|
|
* @date 2022-02-27
|
|
*/
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
#define LIBIPC_ ipc
|
|
#define LIBIPC_NAMESPACE_BEG_ namespace LIBIPC_ {
|
|
#define LIBIPC_NAMESPACE_END_ }
|
|
|
|
LIBIPC_NAMESPACE_BEG_
|
|
|
|
/// @brief Constants.
|
|
|
|
struct prot {
|
|
using type = std::uint32_t;
|
|
enum : type {
|
|
none = 0x00,
|
|
read = 0x01,
|
|
write = 0x02,
|
|
};
|
|
};
|
|
|
|
struct mode {
|
|
using type = std::uint32_t;
|
|
enum : type {
|
|
none = 0x00,
|
|
create = 0x01,
|
|
open = 0x02,
|
|
};
|
|
};
|
|
|
|
LIBIPC_NAMESPACE_END_
|