1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
Commit Graph

132 Commits

Author SHA1 Message Date
Kano
44fc698750 API add last share time to each pool 2012-05-04 00:13:42 +10:00
Con Kolivas
d5d8c2cc5b Implement an older header fix for a label existing before the pthread_cleanup macro. 2012-05-03 10:49:42 +10:00
Kano
afa3fa56b6 API bool's and 1TBS fixes 2012-05-03 10:49:42 +10:00
Kano
524e2fb8f2 api.c V1.9 add 'restart' + redesign 'quit' so thread exits cleanly 2012-05-03 10:49:42 +10:00
Kano
01c93bc1d4 api.c bug - remove extra ']'s in notify command 2012-05-03 10:49:42 +10:00
Con Kolivas
06bf44b06f Restarting cgminer leads to a socket that can't be bound for 60 seconds, so increase the interval that API binding waits to 30 seconds to minimise the number of times it will retry, spamming the logs. 2012-04-28 13:41:18 +10:00
Kano
b249d72e1c api.c include zTex in the FPGA support list 2012-04-26 01:45:04 +10:00
Kano
9febdb5a84 api.c ensure 'devs' shows PGA's when only PGA code is compiled 2012-04-26 00:35:15 +10:00
Kano
c4567ee67f api.c combine all pairs of sprintfs() 2012-04-26 00:08:36 +10:00
Kano
87a5f0d87a api.c uncomment and use BLANK (and COMMA) 2012-04-25 22:39:22 +10:00
Kano
6962514e06 api.c 'devdetails' list static details of devices 2012-04-25 19:23:10 +10:00
Kano
7e65126936 api.c fix unused variable compile warning 2012-04-23 22:01:36 +10:00
Con Kolivas
9b5615d5f3 Shut down the api cleanly when the api thread is cancelled. This should allow the api socket to be closed successfully to next be reopened with app_restart. 2012-04-21 17:20:33 +10:00
Luke Dashjr
b8778839e9 Merge branch 'master' into unify_drivers
Conflicts:
	cgminer.c
2012-04-21 02:36:19 -04:00
Kano
2e1d2017de API add removepool like the screen interface 2012-04-21 03:15:41 +10:00
Kano
eec7c1a963 api.c escape required characters in return strings + pools returns the username 2012-04-20 23:50:27 +10:00
Kano
3fa3f60b74 api.c new commands: pgaenable pgadisable 2012-03-30 22:28:42 +11:00
Kano
0699061ade api.c devicecode/osinfo incorrectly swapped for json 2012-03-28 10:50:28 +11:00
Kano
25f914a334 api.c miner.php add a '*' to the front of all notify counters - simplifies future support of new counters 2012-03-24 23:20:48 +11:00
Kano
25ca0687a1 api.c notify should report disabled devices also - of course 2012-03-23 10:00:23 +11:00
Kano
18a8b5506e API returns the simple device history with the 'notify' command 2012-03-23 03:17:20 +11:00
Kano
8747a472f3 api.c Report an OS string in config to help with device issues 2012-03-22 20:33:17 +11:00
Kano
6be50fab80 api.c fix Log Interval - integer in JSON 2012-03-22 19:50:15 +11:00
Kano
6e35503e57 api.c config 'Device Code' to show list of compiled devices + README 2012-03-22 19:47:23 +11:00
Kano
3dee276308 api.c increase buffer size close to current code allowable limit 2012-03-22 18:57:30 +11:00
Luke Dashjr
e131dfab31 Unify drivers as driver-*.c and add driver name to API 2012-03-13 12:18:23 -04:00
Kano
1f118078eb api.c: correct error messages 2012-03-04 14:51:11 +11:00
Kano
cb3323b7b5 Add API support for Icarus and Bitforce 2012-02-29 21:17:10 +11:00
Kano
c9b7a223e5 Next API version is 1.4 (1.3 is current) 2012-02-27 12:58:35 +11:00
Kano
b4c7c56fa7 README/api.c add "When" the request was processed to STATUS 2012-02-27 12:02:14 +11:00
Kano
0abac0b5d9 API implement addpool command 2012-02-24 03:00:01 +11:00
Kano
54ef2d951b API return the untouched Total MH also (API now version 1.3) 2012-02-23 23:53:15 +11:00
Kano
60c5ac6844 API new commands enablepool and disablepool (version already incremented) 2012-02-23 16:10:17 +11:00
Con Kolivas
d1cddf8bad Update licensing to GPL V3. 2012-02-21 22:23:07 +11:00
Kano
de40e6df4f Modify API debug messages to say API instead of DBG 2012-02-21 20:04:00 +11:00
Kano
e3281c2643 When API shuts down cgminer don't kill itself 2012-02-21 20:03:13 +11:00
Kano
dd233ec244 API add 'privileged' command so can verify access level 2012-02-21 11:08:29 +11:00
Kano
60b7c01e7a API restrict access to all non display commands by default 2012-02-20 20:10:21 +11:00
Kano
c25aead886 Update API version to 1.2 for new 'Log Interval' 2012-02-20 19:15:22 +11:00
Kano
3bd16acf12 API add --log Interval to 'config' reply 2012-02-20 19:12:46 +11:00
Kano
3955fefec0 --api-allow special case 0/0 means all 2012-02-20 19:03:25 +11:00
Con Kolivas
02295c69c8 Allow devices that are disabled due to overheating to be flagged as recovering instead of disabling them and re-enable them if they're below ideal
temperatures and --no-restart has not been set.
2012-02-19 20:19:47 +11:00
Con Kolivas
86a53824b5 Delete unused variable. 2012-02-16 21:15:58 +11:00
Con Kolivas
1885374802 Merge pull request #112 from luke-jr/jansson_compat
Restore compatibility with Jansson 1.3 and 2.0 (api.c required 2.1)
2012-02-11 22:01:51 -08:00
Luke Dashjr
fdadb0b549 Restore compatibility with Jansson 1.3 and 2.0 (api.c required 2.1) 2012-02-11 15:46:08 -05:00
zefir
713e8be629 move CPU chipset specific optimization into device-cpu 2012-02-11 20:25:41 +01:00
Con Kolivas
405a2120f8 Remove unnecessary check for opt_debug on every invocation of applog at LOG_DEBUG and place the check in applog(). 2012-02-11 20:11:18 +11:00
Con Kolivas
8c609579f4 Merge pull request #107 from kanoi/master
Allow API to restrict access by IP address + other commits
2012-02-10 19:07:53 -08:00
Con Kolivas
b54d462c85 Missing include to build on newer mingw32. 2012-02-09 21:56:07 +11:00
Kano
dab9b7e477 Define in_addr_t in windows if required 2012-02-08 19:55:29 +11:00
Kano
f19e67fe3a Allow API to restrict access by IP address 2012-02-08 19:06:24 +11:00
Kano
4a714cb1f3 Bug intensity always shows GPU 0 2012-02-04 22:42:28 +11:00
Kano
1f0a8a69db Display accepted share pool/time for CPUs 2012-02-04 19:35:12 +11:00
Kano
096946407f Return last accepted share pool/time for devices 2012-02-04 19:24:48 +11:00
Kano
42fcbf7c9c Remove most compiler warnings from api.c 2012-02-04 18:19:30 +11:00
Con Kolivas
10b697f0da Revert "Fix compile warnings in api.c"
This reverts commit 8a90f1a756.

Breaks windows build.
2012-01-30 23:56:54 +11:00
Kano
8a90f1a756 Fix compile warnings in api.c 2012-01-29 23:13:23 +11:00
Kano
63e31b4d78 Move intensity range values into miner.h 2012-01-26 14:00:52 +11:00
p2k
c89ef81010 Fixed API compiling issue on OS X 2012-01-23 12:25:16 +01:00
Kano
a1cd9defba Return an error if using ADL API commands when it's not available 2012-01-23 15:25:59 +11:00
Kano
ec2c0b784f Add API commands: config, switchpool, gpu settings, save 2012-01-22 18:24:55 +11:00
Kano
8e275d9f23 Make all CPU code compile time optional - off by default 2012-01-22 00:13:27 +11:00
ckolivas
69966ffe17 Update copyright dates. 2012-01-19 17:05:44 +11:00
ckolivas
332b3ca1e6 Configure out building and support of all CPU mining code unless --enable-cpumining is enabled. 2012-01-19 16:56:42 +11:00
Luke Dashjr
845961af66 Refactor to abstract device-specific code 2012-01-08 20:01:35 -05:00
Con Kolivas
a51514d9d1 White space cleanup. 2011-12-27 10:30:04 +11:00
Con Kolivas
25cd835a27 Change API message to debug only. 2011-12-20 23:36:31 +11:00
Kano
7abe8c3baf Set my name :P 2011-12-20 23:13:23 +11:00
Kano
aacf1e55d9 JSON reply to JSON request 2011-12-20 12:05:40 +11:00
Kano
a039ec09b4 api version change 2011-12-08 23:35:57 +11:00
Kano
152708fee7 Cleanup/remove included inet functions) 2011-12-04 23:42:56 +11:00
Kano
50a0892254 2.0.8x Full GPU stats, descriptive field names and --api-description 2011-12-04 00:24:26 +11:00
Kano
45068ced82 Version 2.0.8w (windows changes) 2011-11-29 11:07:27 +11:00
Kano
293582d27c Plural commands 2011-11-24 21:05:19 +11:00
Kano
45ebf2c5b4 Fix threading issues and bugs 2011-11-24 20:41:31 +11:00
Kano
d234b857ff API v0.2 Added GPU commands and improved messages 2011-11-24 12:59:30 +11:00
Kano
df3fad3dbc Add API options for port and listen mode 2011-11-23 22:22:10 +11:00
Kano
49532277df Add summary command 2011-11-23 17:01:45 +11:00
Kano
bbe1702d66 Add quit command 2011-11-23 16:25:13 +11:00
Kano
89c221ad8a Fix missing close() for invalid commands 2011-11-23 15:57:47 +11:00
Kano
2358056606 API v0.1 2011-11-23 14:35:49 +11:00
Kano
9671f0a22b API v0.1 2011-11-23 14:35:04 +11:00