File: hinoko-functions

package info (click to toggle)
libhinoko 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 2,557; python: 693; makefile: 9; javascript: 5
file content (29 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3

from sys import exit
from errno import ENXIO

import gi
gi.require_version('Hinoko', '1.0')
from gi.repository import Hinoko

from helper import test_functions

types = {
    Hinoko.FwIsoResource: (
        'calculate_bandwidth',
    ),
    Hinoko.FwIsoCtxError: (
        'quark',
    ),
    Hinoko.FwIsoResourceError: (
        'quark',
    ),
    Hinoko.FwIsoResourceAutoError: (
        'quark',
    ),
}

for target_type, functions in types.items():
    if not test_functions(target_type, functions):
        exit(ENXIO)