Radek Krejci | e0854c0 | 2017-10-10 21:11:29 +0200 | [diff] [blame] | 1 | /** |
| 2 | * @file rpc.h |
| 3 | * @author Radek Krejci <rkrejci@cesnet.cz> |
| 4 | * @brief RPC functions for the Session object |
| 5 | * |
| 6 | * Copyright (c) 2017 CESNET, z.s.p.o. |
| 7 | * |
| 8 | * This source code is licensed under BSD 3-Clause License (the "License"). |
| 9 | * You may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * https://opensource.org/licenses/BSD-3-Clause |
| 13 | */ |
| 14 | |
| 15 | #ifndef PYSESSION_H_ |
| 16 | #define PYSESSION_H_ |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
| 22 | typedef struct { |
| 23 | PyObject_HEAD |
| 24 | struct ly_ctx *ctx; |
| 25 | unsigned int *ctx_counter; |
| 26 | struct nc_session *session; |
| 27 | } ncSessionObject; |
| 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | #endif /* PYSESSION_H_ */ |