summaryrefslogtreecommitdiff
path: root/src/libwebvi/webvi/constants.py
blob: aba11d6a781181fb583fca2a21d746a659bd139c (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# constants.py - Python definitions for constants in libwebvi.h
#
# Copyright (c) 2009-2012 Antti Ajanki <antti.ajanki@iki.fi>
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

# Keep these in sync with libwebvi.h

class WebviRequestType:
    MENU = 0
    FILE = 1
    STREAMURL = 2

class WebviErr:
    OK = 0
    INVALID_HANDLE = 1
    INVALID_PARAMETER = 2
    INTERNAL_ERROR = -1

class WebviOpt:
    WRITEFUNC = 0
    READFUNC = 1
    WRITEDATA = 2
    READDATA = 3

class WebviInfo:
    URL = 0
    CONTENT_LENGTH = 1
    CONTENT_TYPE = 2
    STREAM_TITLE = 3

class WebviSelectBitmask:
    CHECK = 0
    READ = 1
    WRITE = 2
    EXCEPTION = 4

class WebviSelect:
    TIMEOUT = -1

class WebviConfig:
    TEMPLATE_PATH = 0
    DEBUG = 1
    TIMEOUT_CALLBACK = 2
    TIMEOUT_DATA = 3