[libbluray-devel] Cosmetics (grouped functions)

hpi1 git at videolan.org
Wed Feb 9 17:01:30 CET 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Feb  9 17:40:56 2011 +0200| [dddcca9decf537ae9ed5abee3d30ab03c671b9b1] | committer: hpi1

Cosmetics (grouped functions)

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=dddcca9decf537ae9ed5abee3d30ab03c671b9b1
---

 src/libbluray/decoders/graphics_controller.c |   30 ++++++++++++++++---------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index b95d567..ad493c5 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -62,17 +62,9 @@ struct graphics_controller_s {
     GRAPHICS_PROCESSOR *igp;
 };
 
-GRAPHICS_CONTROLLER *gc_init(BD_REGISTERS *regs, void *handle, gc_overlay_proc_f func)
-{
-    GRAPHICS_CONTROLLER *p = calloc(1, sizeof(*p));
-
-    p->regs = regs;
-
-    p->overlay_proc_handle = handle;
-    p->overlay_proc        = func;
-
-    return p;
-}
+/*
+ * util
+ */
 
 static void _gc_clear_osd(GRAPHICS_CONTROLLER *gc, int plane)
 {
@@ -115,6 +107,22 @@ static void _gc_reset(GRAPHICS_CONTROLLER *gc)
     X_FREE(gc->enabled_button);
 }
 
+/*
+ * init / free
+ */
+
+GRAPHICS_CONTROLLER *gc_init(BD_REGISTERS *regs, void *handle, gc_overlay_proc_f func)
+{
+    GRAPHICS_CONTROLLER *p = calloc(1, sizeof(*p));
+
+    p->regs = regs;
+
+    p->overlay_proc_handle = handle;
+    p->overlay_proc        = func;
+
+    return p;
+}
+
 void gc_free(GRAPHICS_CONTROLLER **p)
 {
     if (p && *p) {



More information about the libbluray-devel mailing list