Skip to content

Commit

Permalink
mock objects for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Sep 2, 2013
1 parent 78446ea commit ea7746c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Expand Up @@ -13,6 +13,7 @@

import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(__file__, "../../python-api")))
sys.path.insert(0, os.path.abspath(os.path.join(__file__, "../fake-lib")))
# print sys.path
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
2 changes: 2 additions & 0 deletions docs/fake-lib/gi/__init__.py
@@ -0,0 +1,2 @@
def require_version(namespace, version):
pass
9 changes: 9 additions & 0 deletions docs/fake-lib/gi/repository/GObject.py
@@ -0,0 +1,9 @@
threads_init = lambda *a, **k: None

class Source(object):
pass

class IOCondition:
IN = 1
ERR = 8
HUP = 16
7 changes: 6 additions & 1 deletion docs/fake-lib/gi/repository/Gio.py
@@ -1,4 +1,9 @@
threads_init = lambda *a, **k: None

class DBusConnection(object):
pass
pass

class DBusConnectionFlags(object):
AUTHENTICATION_CLIENT = 1
pass

8 changes: 7 additions & 1 deletion docs/fake-lib/gi/repository/Gst.py
@@ -1,7 +1,13 @@
threads_init = lambda *a, **k: None

def init(a):
pass

class Source(object):
pass
pass

class Pipeline(object):
pass

class IOCondition:
IN = 1
Expand Down
2 changes: 1 addition & 1 deletion python-api/gstswitch/connection.py
Expand Up @@ -319,7 +319,7 @@ def new_record(self):
raise ConnectionError(new_message)

def adjust_pip(self, xpos, ypos, width, height):
"""adjust_pip(in i dx,
"""adjust_pip(in i dx,
in i dy,
in i dw,
in i dh,
Expand Down

0 comments on commit ea7746c

Please sign in to comment.