control-response.h
1 
21 #ifndef NDN_CONTROL_RESPONSE_H
22 #define NDN_CONTROL_RESPONSE_H
23 
24 #include <ndn-cpp/c/control-response-types.h>
25 #include "control-parameters.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
44 static __inline void
45 ndn_ControlResponse_initialize
46  (struct ndn_ControlResponse *self, struct ndn_NameComponent *nameComponents,
47  size_t maxNameComponents, struct ndn_NameComponent *strategyNameComponents,
48  size_t strategyMaxNameComponents)
49 {
50  self->statusCode = -1;
51  ndn_Blob_initialize(&self->statusText, 0, 0);
52  self->hasBodyAsControlParameters = 0;
53  ndn_ControlParameters_initialize
54  (&self->bodyAsControlParameters, nameComponents, maxNameComponents,
55  strategyNameComponents, strategyMaxNameComponents);
56 }
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif
Copyright (C) 2016 Regents of the University of California.
Definition: control-response-types.h:35
Copyright (C) 2015-2016 Regents of the University of California.
Definition: name-types.h:33