summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-10-22 08:50:13 +0000
committerDave Chapman <dave@dchapman.com>2008-10-22 08:50:13 +0000
commit019f9c034b3bfcf1a69c6f7b86e0dc777a6a8d94 (patch)
treea59592e170000725f50df0c2c4cfe4133c4c9334 /apps/plugins
parent4e2557cfcefcbc55b3823193234aba51d05a7098 (diff)
Make some local global variables static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/jpeg/jpeg.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/apps/plugins/jpeg/jpeg.c b/apps/plugins/jpeg/jpeg.c
index d70fca809f..9c580b7f34 100644
--- a/apps/plugins/jpeg/jpeg.c
+++ b/apps/plugins/jpeg/jpeg.c
@@ -76,7 +76,8 @@ GREY_INFO_STRUCT
/******************************* Globals ***********************************/
-const struct plugin_api* rb;
+const struct plugin_api* rb; /* Exported to other .c files in this plugin */
+
MEM_FUNCTION_WRAPPERS(rb);
static int slideshow_enabled = false; /* run slideshow */
@@ -133,7 +134,7 @@ static struct configdata jpeg_config[] =
};
#if LCD_DEPTH > 1
-fb_data* old_backdrop;
+static fb_data* old_backdrop;
#endif
/**************** begin Application ********************/
@@ -158,31 +159,31 @@ struct t_disp
/************************* Globals ***************************/
/* decompressed image in the possible sizes (1,2,4,8), wasting the other */
-struct t_disp disp[9];
+static struct t_disp disp[9];
/* my memory pool (from the mp3 buffer) */
-char print[32]; /* use a common snprintf() buffer */
-unsigned char* buf; /* up to here currently used by image(s) */
+static char print[32]; /* use a common snprintf() buffer */
+static unsigned char* buf; /* up to here currently used by image(s) */
/* the remaining free part of the buffer for compressed+uncompressed images */
-unsigned char* buf_images;
+static unsigned char* buf_images;
-ssize_t buf_size, buf_images_size;
+static ssize_t buf_size, buf_images_size;
/* the root of the images, hereafter are decompresed ones */
-unsigned char* buf_root;
-int root_size;
+static unsigned char* buf_root;
+static int root_size;
-int ds, ds_min, ds_max; /* downscaling and limits */
+static int ds, ds_min, ds_max; /* downscaling and limits */
static struct jpeg jpg; /* too large for stack */
static struct tree_context *tree;
/* the current full file name */
static char np_file[MAX_PATH];
-int curfile = 0, direction = DIR_NONE, entries = 0;
+static int curfile = 0, direction = DIR_NONE, entries = 0;
/* list of the jpeg files */
-char **file_pt;
+static char **file_pt;
/* are we using the plugin buffer or the audio buffer? */
bool plug_buf = false;