blob: 9dbb056dbb6ff3419d95e6e5550eedcbbf81ed8b [file] [log] [blame]
Radek Krejcie0854c02017-10-10 21:11:29 +02001/**
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
19extern "C" {
20#endif
21
22typedef 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_ */