Line data Source code
1 : /* 2 : * vr_response.c -- 3 : * 4 : * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. 5 : * Copyright Contributors to the OpenSDN project 6 : */ 7 : 8 : #include "vr_sandesh.h" 9 : #include "vr_os.h" 10 : #include "vr_types.h" 11 : 12 : int vr_generate_response(vr_response *, int code, unsigned char *, int); 13 : 14 : void 15 0 : vr_response_process(void *s_req) 16 : { 17 0 : } 18 : 19 : int 20 0 : vr_generate_response(vr_response *resp, int code, unsigned char *buf, 21 : int buf_len) 22 : { 23 : int ret; 24 : int error; 25 : 26 0 : resp->h_op = SANDESH_OP_RESPONSE; 27 0 : resp->resp_code = code; 28 : 29 0 : ret = sandesh_encode(resp, "vr_response", vr_find_sandesh_info, 30 : buf, buf_len, &error); 31 0 : return ret; 32 : } 33 :