'''
libclamav.so.X - shared functions
 
(c) 2009-2016 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
  
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
'''

from __future__ import absolute_import

from ctypes import *

class ClamAVError(Exception):
      '''ClamAVError'''
      pass

class DBStat(Structure):
  _fields_ = [
    ('dir', c_char_p),
    ('stattab', c_void_p),
    ('statdname', c_void_p),
    ('entries', c_uint)
  ]

class cl_engine(Structure):
  # a structure, defined in clamav
  pass
