Radek Krejci | 4339024 | 2015-10-08 15:34:04 +0200 | [diff] [blame^] | 1 | /** |
| 2 | * \file session.h |
| 3 | * \author Radek Krejci <rkrejci@cesnet.cz> |
| 4 | * \brief libnetconf2 session manipulation |
| 5 | * |
| 6 | * Copyright (c) 2015 CESNET, z.s.p.o. |
| 7 | * |
| 8 | * Redistribution and use in source and binary forms, with or without |
| 9 | * modification, are permitted provided that the following conditions |
| 10 | * are met: |
| 11 | * 1. Redistributions of source code must retain the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer. |
| 13 | * 2. Redistributions in binary form must reproduce the above copyright |
| 14 | * notice, this list of conditions and the following disclaimer in |
| 15 | * the documentation and/or other materials provided with the |
| 16 | * distribution. |
| 17 | * 3. Neither the name of the Company nor the names of its contributors |
| 18 | * may be used to endorse or promote products derived from this |
| 19 | * software without specific prior written permission. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #ifndef NC_SESSION_H_ |
| 24 | #define NC_SESSION_H_ |
| 25 | |
| 26 | #include "messages.h" |
| 27 | |
| 28 | /** |
| 29 | * @brief NETCONF session object |
| 30 | */ |
| 31 | struct nc_session; |
| 32 | |
| 33 | /** |
| 34 | * @brief Receive NETCONF RPC |
| 35 | */ |
| 36 | NC_MSG_TYPE nc_recv_rpc(struct nc_session* session, int timeout, struct nc_rpc **rpc); |
| 37 | |
| 38 | #endif /* NC_SESSION_H_ */ |