mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
All compilation related issues in the headers have been fixed. Now each header compiles with no warnings as a standalone file.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1164 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
#include "drv_generic.h"
|
||||
#include "widget.h"
|
||||
#include "widget_bar.h"
|
||||
|
||||
extern int CHARS, CHAR0; /* number of user-defineable characters, ASCII of first char */
|
||||
extern int ICONS; /* number of user-defineable characters reserved for icons */
|
||||
|
||||
@@ -459,6 +459,7 @@ struct i2c_rdwr_ioctl_data {
|
||||
|
||||
#define I2C_RDRW_IOCTL_MAX_MSGS 42
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command, int size, union i2c_smbus_data *data)
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#ifndef _TIMER_H_
|
||||
#define _TIMER_H_
|
||||
|
||||
#include <time.h>
|
||||
|
||||
int timer_add(void (*callback) (void *data), void *data, const int interval, const int one_shot);
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#define _WIDGET_BAR_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
#include "rgb.h"
|
||||
|
||||
typedef enum { DIR_EAST = 1, DIR_WEST = 2, DIR_NORTH = 4, DIR_SOUTH = 8 } DIRECTION;
|
||||
typedef enum { STYLE_HOLLOW = 1, STYLE_FIRST = 2, STYLE_LAST = 4 } STYLE;
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _WIDGET_GPO_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
|
||||
typedef struct WIDGET_GPO {
|
||||
PROPERTY expression; /* main GPO expression */
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _WIDGET_ICON_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
|
||||
typedef struct WIDGET_ICON {
|
||||
PROPERTY speed; /* update interval (msec) */
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _WIDGET_IMAGE_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
#include "rgb.h"
|
||||
|
||||
typedef struct WIDGET_IMAGE {
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _WIDGET_KEYPAD_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
|
||||
typedef enum {
|
||||
WIDGET_KEY_UP = 1,
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _WIDGET_TEXT_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
|
||||
typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE, ALIGN_AUTOMATIC, ALIGN_PINGPONG_LEFT,
|
||||
ALIGN_PINGPONG_CENTER, ALIGN_PINGPONG_RIGHT
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _WIDGET_TIMER_H_
|
||||
|
||||
#include "property.h"
|
||||
#include "widget.h"
|
||||
|
||||
typedef struct WIDGET_TIMER {
|
||||
PROPERTY expression; /* main timer expression */
|
||||
|
||||
Reference in New Issue
Block a user