[libbluray-devel] Moved _is_button_enabled() to util section

hpi1 git at videolan.org
Mon Feb 21 14:30:04 CET 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 20 17:44:19 2011 +0200| [3798db481c23493d781d4f5c76cd6cc9a4af5024] | committer: hpi1

Moved _is_button_enabled() to util section

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

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

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index a5cb744..0a1b732 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -167,6 +167,17 @@ static BD_PG_OBJECT *_find_object_for_button(PG_DISPLAY_SET *s,
  * util
  */
 
+static int _is_button_enabled(GRAPHICS_CONTROLLER *gc, BD_IG_PAGE *page, unsigned button_id)
+{
+    unsigned ii;
+    for (ii = 0; ii < page->num_bogs; ii++) {
+        if (gc->enabled_button[ii] == button_id) {
+            return 1;
+        }
+    }
+    return 0;
+}
+
 static void _reset_enabled_button(GRAPHICS_CONTROLLER *gc)
 {
     PG_DISPLAY_SET *s       = gc->igs;
@@ -652,17 +663,6 @@ static void _enable_button(GRAPHICS_CONTROLLER *gc, uint32_t button_id, unsigned
     }
 }
 
-static int _is_button_enabled(GRAPHICS_CONTROLLER *gc, BD_IG_PAGE *page, unsigned button_id)
-{
-    unsigned ii;
-    for (ii = 0; ii < page->num_bogs; ii++) {
-        if (gc->enabled_button[ii] == button_id) {
-            return 1;
-        }
-    }
-    return 0;
-}
-
 static void _update_selected_button(GRAPHICS_CONTROLLER *gc)
 {
     unsigned button_id = bd_psr_read(gc->regs, PSR_SELECTED_BUTTON_ID);



More information about the libbluray-devel mailing list