summaryrefslogtreecommitdiffstats
path: root/fb2png
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-11 22:31:00 +0100
committerMatt Mower <mowerm@gmail.com>2017-01-18 20:04:35 +0100
commit908a27728c15a679cc14fcfd3b98c896b9f4ab7c (patch)
tree87121d1b616b8dec18a0c08913fd67860cca8ff5 /fb2png
parentinit: Remove duplicate trigger of load_system_props_action (diff)
downloadandroid_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.tar
android_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.tar.gz
android_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.tar.bz2
android_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.tar.lz
android_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.tar.xz
android_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.tar.zst
android_bootable_recovery-908a27728c15a679cc14fcfd3b98c896b9f4ab7c.zip
Diffstat (limited to 'fb2png')
-rw-r--r--fb2png/fb.h1
-rw-r--r--fb2png/fb2png.c8
-rw-r--r--fb2png/log.h1
-rw-r--r--fb2png/main.c5
4 files changed, 11 insertions, 4 deletions
diff --git a/fb2png/fb.h b/fb2png/fb.h
index 25922c83b..b82acba24 100644
--- a/fb2png/fb.h
+++ b/fb2png/fb.h
@@ -37,6 +37,7 @@ struct fb {
void* data;
};
+void fb_dump(const struct fb* fb);
int fb_save_png(const struct fb *fb, const char *path);
#endif
diff --git a/fb2png/fb2png.c b/fb2png/fb2png.c
index a357b7fee..1123b053b 100644
--- a/fb2png/fb2png.c
+++ b/fb2png/fb2png.c
@@ -17,13 +17,15 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <errno.h>
+#include <fcntl.h>
+#include <linux/fb.h>
#include <stdio.h>
#include <stdlib.h>
-#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
-#include <linux/fb.h>
-#include <errno.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "log.h"
#include "fb2png.h"
diff --git a/fb2png/log.h b/fb2png/log.h
index 96e90d796..2b7cf8cec 100644
--- a/fb2png/log.h
+++ b/fb2png/log.h
@@ -21,6 +21,7 @@
#define __KYAN_LOG_H__
#include <errno.h>
+#include <string.h>
#ifdef ANDROID_XXX
diff --git a/fb2png/main.c b/fb2png/main.c
index 84e08a968..235e958f9 100644
--- a/fb2png/main.c
+++ b/fb2png/main.c
@@ -17,9 +17,12 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <stdio.h>
+
#include <limits.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+
#include "fb2png.h"
#ifdef ANDROID