aboutsummaryrefslogtreecommitdiff
path: root/python/olm/_base.py
blob: ad21d6f0c0a87eacd62c4c5c0471c11a76d10c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os.path

from ctypes import *


lib = cdll.LoadLibrary(os.path.join(
    os.path.dirname(__file__), "..", "..", "build", "libolm.so.2")
)

lib.olm_error.argtypes = []
lib.olm_error.restypes = c_size_t

ERR = lib.olm_error()


class OlmError(Exception):
    pass