I'm trying to get a config using nc_recv_reply. So basically what I'm doing is:
struct nc_reply_data* reply = NULL;
std::cout << "======Calling nc_recv_reply======" << std::endl;
type = nc_recv_reply(session, rpc, msgid, 300, 0, (struct nc_reply**)&reply);
std::cout << "======Finished calling nc_recv_reply======" << std::endl;
if(reply && type == NC_MSG_REPLY)
if(reply->type == NC_RPL_DATA)
{
if(reply->data)
std::cout<< "======Got data======"<<std::endl;
else
std::cout<< "======Couldn't get data======"<<std::endl;
}
else
std::cout<< "======Failure======"<<std::endl;
What get is
======Calling nc_recv_reply======
The message I'm supposed to receive
======Finished calling nc_recv_reply======
======Couldn't get data======
So my question is how do I get the lyd_node* I'm expecting?
Thanks in advance :)