~sysman-one/starlet/main

« back to all changes in this revision

Viewing changes to avproto.h

  • Committer: Ruslan (The BadAss SysMan) Laishev
  • Date: 2023-09-11 10:31:24 UTC
  • Revision ID: git-v1:7a4443ce31e3cbbb095e2282ff3d62c96b674799
[*] Added API for TLV/AV

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
 *      condition code
198
198
 */
199
199
inline static int       avproto_hset    (
200
 
        void            *pdup,
201
 
        unsigned char   *sig,
202
 
        unsigned        u_csr,
203
 
        unsigned        u_seq
 
200
                void            *pdup,
 
201
        const unsigned char     *sig,
 
202
                unsigned        u_csr,
 
203
                unsigned        u_seq
204
204
                        )
205
205
{
206
206
AVPROTO_PDU     *pdu = (AVPROTO_PDU *) pdup;
231
231
 *      condition code
232
232
 */
233
233
inline static int       avproto_hget    (
234
 
        void            *pdup,
235
 
        unsigned char   *sig,
236
 
        unsigned        *u_len,
237
 
        unsigned        *u_csr,
238
 
        unsigned        *u_seq
 
234
                void            *pdup,
 
235
        const unsigned char     *sig,
 
236
                unsigned        *u_len,
 
237
                unsigned        *u_csr,
 
238
                unsigned        *u_seq
239
239
                        )
240
240
{
241
 
int     len;
 
241
size_t  len;
242
242
AVPROTO_PDU     *pdu = (AVPROTO_PDU *) pdup;
243
243
 
244
244
        *u_csr = STS$K_ERROR;