File: fw-req

package info (click to toggle)
libhinawa 4.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: ansic: 1,901; python: 690; javascript: 5; makefile: 5
file content (28 lines) | stat: -rwxr-xr-x 461 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
#!/usr/bin/env python3

from sys import exit
from errno import ENXIO

from helper import test_object

import gi
gi.require_version('Hinawa', '4.0')
from gi.repository import Hinawa

target_type = Hinawa.FwReq
props = ()
methods = (
    'new',
    'transaction',
    'request',
    'transaction_with_tstamp',
)
vmethods = (
    'do_responded',
)
signals = (
    'responded',
)

if not test_object(target_type, props, methods, vmethods, signals):
    exit(ENXIO)