Diff for /libaitrpc/inc/aitrpc_pkt.h between versions 1.2 and 1.3.4.1

version 1.2, 2015/07/02 22:28:14 version 1.3.4.1, 2022/10/13 22:09:36
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2015Copyright 2004 - 2022
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 113  typedef struct { Line 113  typedef struct {
         uint16_t        sess_version:8;          uint16_t        sess_version:8;
         uint16_t        sess_instance:8;          uint16_t        sess_instance:8;
 #endif  #endif
} __packed rpc_sess_t;     /* size == 2 bytes */} __attribute__((packed)) rpc_sess_t;    /* size == 2 bytes */
   
 /* Network RPC packet - Header */  /* Network RPC packet - Header */
   
Line 138  struct tagRPCCall { Line 138  struct tagRPCCall {
         uint16_t        call_tag;          uint16_t        call_tag;
         uint8_t         call_argc;          uint8_t         call_argc;
         ait_val_t       call_argv[0];          ait_val_t       call_argv[0];
} __packed;                       /* size == 20 bytes */} __attribute__((packed));        /* size == 20 bytes */
 #define RPC_CHK_NOREPLY(x)      (ntohl((u_long) (x)->call_req.flags) & RPC_NOREPLY)  #define RPC_CHK_NOREPLY(x)      (ntohl((u_long) (x)->call_req.flags) & RPC_NOREPLY)
 #define RPC_SET_ERRNO(x, _v)    ((x)->call_rep.eno = (int32_t) htonl((_v)))  #define RPC_SET_ERRNO(x, _v)    ((x)->call_rep.eno = (int32_t) htonl((_v)))
 #define RPC_SET_RETURN(x, _v)   ((x)->call_rep.ret = (int32_t) htonl((_v)))  #define RPC_SET_RETURN(x, _v)   ((x)->call_rep.ret = (int32_t) htonl((_v)))
Line 152  struct tagBLOBHdr { Line 152  struct tagBLOBHdr {
         uint32_t        hdr_len;          uint32_t        hdr_len;
         uint32_t        hdr_ret;          uint32_t        hdr_ret;
         uint8_t         hdr_pad;          uint8_t         hdr_pad;
} __packed;                       /* size == 16 bytes */} __attribute__((packed));                       /* size == 16 bytes */
 #define RPC_SET_BLOB_RET(x, _v) ((x)->hdr_ret = (uint32_t) htonl((_v)))  #define RPC_SET_BLOB_RET(x, _v) ((x)->hdr_ret = (uint32_t) htonl((_v)))
   
 /* RPC BLOB types */  /* RPC BLOB types */

Removed from v.1.2  
changed lines
  Added in v.1.3.4.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>