Browse Source

Merge commit '8ebf4f6' into cg_merges_20121207

Conflicts:
	miner.h
Luke Dashjr 13 years ago
parent
commit
0a86eb94ca
1 changed files with 18 additions and 18 deletions
  1. 18 18
      miner.h

+ 18 - 18
miner.h

@@ -292,31 +292,31 @@ struct thr_info;
 struct work;
 struct work;
 
 
 struct device_api {
 struct device_api {
-	const char*dname;
-	const char*name;
+	const char *dname;
+	const char *name;
 
 
 	// API-global functions
 	// API-global functions
 	void (*api_detect)();
 	void (*api_detect)();
 
 
 	// Device-specific functions
 	// Device-specific functions
-	void (*reinit_device)(struct cgpu_info*);
-	void (*get_statline_before)(char*, struct cgpu_info*);
-	void (*get_statline)(char*, struct cgpu_info*);
-	struct api_data* (*get_api_extra_device_detail)(struct cgpu_info*);
-	struct api_data* (*get_api_extra_device_status)(struct cgpu_info*);
-	struct api_data *(*get_api_stats)(struct cgpu_info*);
-	bool (*get_stats)(struct cgpu_info*);
-	bool (*identify_device)(struct cgpu_info*);  // e.g. to flash a led
+	void (*reinit_device)(struct cgpu_info *);
+	void (*get_statline_before)(char *, struct cgpu_info *);
+	void (*get_statline)(char *, struct cgpu_info *);
+	struct api_data* (*get_api_extra_device_detail)(struct cgpu_info *);
+	struct api_data* (*get_api_extra_device_status)(struct cgpu_info *);
+	struct api_data *(*get_api_stats)(struct cgpu_info *);
+	bool (*get_stats)(struct cgpu_info *);
+	bool (*identify_device)(struct cgpu_info *);  // e.g. to flash a led
 
 
 	// Thread-specific functions
 	// Thread-specific functions
-	bool (*thread_prepare)(struct thr_info*);
-	uint64_t (*can_limit_work)(struct thr_info*);
-	bool (*thread_init)(struct thr_info*);
-	bool (*prepare_work)(struct thr_info*, struct work*);
-	int64_t (*scanhash)(struct thr_info*, struct work*, int64_t);
-	void (*hw_error)(struct thr_info*);
-	void (*thread_shutdown)(struct thr_info*);
-	void (*thread_enable)(struct thr_info*);
+	bool (*thread_prepare)(struct thr_info *);
+	uint64_t (*can_limit_work)(struct thr_info *);
+	bool (*thread_init)(struct thr_info *);
+	bool (*prepare_work)(struct thr_info *, struct work *);
+	int64_t (*scanhash)(struct thr_info *, struct work *, int64_t);
+	void (*hw_error)(struct thr_info *);
+	void (*thread_shutdown)(struct thr_info *);
+	void (*thread_enable)(struct thr_info *);
 };
 };
 
 
 enum dev_enable {
 enum dev_enable {