Changeset 89c57b6 in mainline for uspace/lib/c/include/ipc/packet.h
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/packet.h
rcefb126 r89c57b6 27 27 */ 28 28 29 /** @addtogroup packet29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #ifndef __NET_PACKET_MESSAGES__38 #define __NET_PACKET_MESSAGES__37 #ifndef LIBC_PACKET_MESSAGES_ 38 #define LIBC_PACKET_MESSAGES_ 39 39 40 #include <ipc/ ipc.h>40 #include <ipc/net.h> 41 41 42 #include <net_messages.h> 43 44 /** Packet server module messages. 45 */ 42 /** Packet server module messages. */ 46 43 typedef enum { 47 44 /** Create packet message with specified content length. 48 * 45 * @see packet_get_1() 49 46 */ 50 47 NET_PACKET_CREATE_1 = NET_PACKET_FIRST, 51 /** Create packet message with specified address length, prefix, content and suffix. 52 * @see packet_get_4() 48 49 /** 50 * Create packet message with specified address length, prefix, content 51 * and suffix. 52 * @see packet_get_4() 53 53 */ 54 54 NET_PACKET_CREATE_4, 55 55 56 /** Get packet message. 56 * @see packet_return() 57 */ 57 * @see packet_return() */ 58 58 NET_PACKET_GET, 59 59 60 /** Get packet size message. 60 * 61 * @see packet_translate() 61 62 */ 62 63 NET_PACKET_GET_SIZE, 64 63 65 /** Release packet message. 64 * 66 * @see pq_release() 65 67 */ 66 68 NET_PACKET_RELEASE 67 69 } packet_messages; 68 70 69 /** Returns the protocol service message parameter. 70 */ 71 #define ARP_GET_PROTO(call) (services_t) IPC_GET_ARG2(*call) 71 /** Return the protocol service message parameter. */ 72 #define ARP_GET_PROTO(call) ((services_t) IPC_GET_ARG2(call)) 72 73 73 /** Returns the packet identifier message parameter. 74 */ 75 #define IPC_GET_ID(call) (packet_id_t) IPC_GET_ARG1(*call) 74 /** Return the packet identifier message parameter. */ 75 #define IPC_GET_ID(call) ((packet_id_t) IPC_GET_ARG1(call)) 76 76 77 /** Returns the maximal content length message parameter. 78 */ 79 #define IPC_GET_CONTENT(call) (size_t) IPC_GET_ARG1(*call) 77 /** Return the maximal content length message parameter. */ 78 #define IPC_GET_CONTENT(call) ((size_t) IPC_GET_ARG1(call)) 80 79 81 /** Returns the maximal address length message parameter. 82 */ 83 #define IPC_GET_ADDR_LEN(call) (size_t) IPC_GET_ARG2(*call) 80 /** Return the maximal address length message parameter. */ 81 #define IPC_GET_ADDR_LEN(call) ((size_t) IPC_GET_ARG2(call)) 84 82 85 /** Returns the maximal prefix length message parameter. 86 */ 87 #define IPC_GET_PREFIX(call) (size_t) IPC_GET_ARG3(*call) 83 /** Return the maximal prefix length message parameter. */ 84 #define IPC_GET_PREFIX(call) ((size_t) IPC_GET_ARG3(call)) 88 85 89 /** Returns the maximal suffix length message parameter. 90 */ 91 #define IPC_GET_SUFFIX(call) (size_t) IPC_GET_ARG4(*call) 86 /** Return the maximal suffix length message parameter. */ 87 #define IPC_GET_SUFFIX(call) ((size_t) IPC_GET_ARG4(call)) 92 88 93 89 #endif
Note:
See TracChangeset
for help on using the changeset viewer.