Commit 544996e63339d416faa922cf08d5075d3f0148ae
- Date: Mon Nov 19 06:06:08 +0000 2007
- Committer: Dustin Sallings (dustin@spy.net)
- Author: Dustin Sallings (dustin@spy.net)
- Commit SHA1: 544996e63339d416faa922cf08d5075d3f0148ae
- Tree SHA1: cd605305ed9676a48fdd85777fcb636aa7027c19
- temp_convert.bc 3 ---
- scheme/1921.scm 2 --
- mlan/ds1920.h 6 ------
- commands/slew.c 4 ----
- mlan/ds2438.h 6 ------
- mlan/ds1921.h 6 ------
- collection/sensors.sql 3 ---
- scheme/1920.scm 2 --
- mlan/mlan.h 6 ------
- mlan/mlan-defines.h 6 ------
- commands/sample_devices.h 2 --
- commands/Makefile.in 2 --
- commands/1920.c 4 ----
- mlan/utility.h 6 ------
- mlan/common.c 2 --
- commands/2438.c 4 ----
- collection/storage-pgsql.h 6 ------
- mlan/ds2406.c 6 ------
- mlan/devices.c 6 ------
- commands/search.c 4 ----
- commands/lookup.c 4 ----
- collection/storage-rrd.c 6 ------
- arch.config 2 --
- mlan/ds2480.c 6 ------
- mlan/commands.h 6 ------
- commands/1921dump.c 4 ----
- collection/data.c 6 ------
- scheme/alldev.scm 2 --
- mlan/ds1920.c 6 ------
- mlan/Makefile.in 2 --
- configure.in 1 -
- collection/collector.c 6 ------
- collection/Makefile.in 1 -
- TODO 3 ---
- mlan/ds2438.c 6 ------
- mlan/ds1921.c 6 ------
- mlan/utility.c 6 ------
- mlan/mlan.c 6 ------
- mlan/com.c 6 ------
- commands/sample_devices.c 3 ---
- commands/2406.c 4 ----
- commands/1921mission.c 4 ----
- mlan/ds2406.h 6 ------
- commands/storage.c 4 ----
- commands/sd_server.c 1 -
- commands/mlanscm.c 6 ------
- collection/storage-rrd.h 6 ------
- collection/storage-pgsql.c 6 ------
- collection/collection.h 6 ------
- builddist 1 -
- README.ibutton 3 ---
- Makefile.in 3 ---
- collection/data.h 6 ------
Commit diff
- Diff rendering mode:
- inline
- side by side
Makefile.in
|   | ||
| 1 | 1 | # Makefile for the mlan library |
| 2 | 2 | # |
| 3 | 3 | # Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | 4 | |
| 8 | 5 | SHELL=/bin/sh |
| 9 | 6 | AR=@AR@ |
| toggle raw diff | ||
README.ibutton
|   | ||
| 105 | 105 | The serial number of the device to retrieve all the settings |
| 106 | 106 | for. |
| 107 | 107 | |
| 108 | ||
| 109 | ||
| 110 | ||
| toggle raw diff | ||
TODO
|   | ||
| 2 | 2 | Build a test suite to validate integrity and stuff. |
| 3 | 3 | Add max connection lifetime and read timeouts and stuff. |
| 4 | 4 | Add a live update mode. |
| 5 | ||
| 6 | ||
| 7 | ||
| toggle raw diff | ||
arch.config
|   | ||
| 1 | ||
| 2 | ||
| 3 | 1 | # Need mymalloc |
| 4 | 2 | ./mymalloc dustin@spy.net--projects/clib--mymalloc--1.0 |
| 5 | 3 | ./stringlib dustin@spy.net--projects-2006/clib--strings--1.0 |
| toggle raw diff | ||
builddist
|   | ||
| 1 | 1 | #!/bin/sh |
| 2 | ||
| 3 | 2 | |
| 4 | 3 | fn=ibutton.tar |
| 5 | 4 | |
| toggle raw diff | ||
collection/Makefile.in
|   | ||
| 1 | ||
| 2 | 1 | SHELL=/bin/sh |
| 3 | 2 | AR=@AR@ |
| 4 | 3 | RANLIB=@RANLIB@ |
| toggle raw diff | ||
collection/collection.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef COLLECTION_H |
| … | … | |
| 30 | 30 | #define verboseprint(a, b) if(col_verbose>=a) { printf b; } |
| 31 | 31 | |
| 32 | 32 | #endif /* COLLECTION_H */ |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | ||
| toggle raw diff | ||
collection/collector.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <sys/types.h> |
| … | … | |
| 316 | 316 | mainloop(); |
| 317 | 317 | return(0); |
| 318 | 318 | } |
| 319 | ||
| 320 | ||
| 321 | ||
| 322 | ||
| toggle raw diff | ||
collection/data.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 273 | 273 | disposeOfLogEntry(entry); |
| 274 | 274 | } |
| 275 | 275 | #endif |
| 276 | ||
| 277 | ||
| 278 | ||
| 279 | ||
| toggle raw diff | ||
collection/data.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef DATA_H |
| … | … | |
| 65 | 65 | void disposeOfRRDQueue(struct data_queue *dl); |
| 66 | 66 | |
| 67 | 67 | #endif |
| 68 | ||
| 69 | ||
| 70 | ||
| 71 | ||
| toggle raw diff | ||
collection/sensors.sql
|   | ||
| 1 | 1 | -- Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | 2 | |
| 6 | 3 | -- Different types of sensors |
| 7 | 4 | create table sensor_types ( |
| toggle raw diff | ||
collection/storage-pgsql.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <sys/types.h> |
| … | … | |
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | #endif /* HAVE_LIBPQ_FE_H */ |
| 130 | ||
| 131 | ||
| 132 | ||
| 133 | ||
| toggle raw diff | ||
collection/storage-pgsql.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef STORAGE_PGSQL_H |
| … | … | |
| 20 | 20 | void initPostgresStore(); |
| 21 | 21 | |
| 22 | 22 | #endif /* STORAGE_PGSQL_H */ |
| 23 | ||
| 24 | ||
| 25 | ||
| 26 | ||
| toggle raw diff | ||
collection/storage-rrd.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <sys/types.h> |
| … | … | |
| 161 | 161 | freeList(args); |
| 162 | 162 | } |
| 163 | 163 | #endif /* HAVE_RRD_H */ |
| 164 | ||
| 165 | ||
| 166 | ||
| 167 | ||
| toggle raw diff | ||
collection/storage-rrd.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef STORAGE_RRD_H |
| … | … | |
| 8 | 8 | void saveDataRRD(struct log_datum *p); |
| 9 | 9 | |
| 10 | 10 | #endif /* STORAGE_RRD_H */ |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | ||
| toggle raw diff | ||
commands/1920.c
|   | ||
| 56 | 56 | |
| 57 | 57 | exit(0); |
| 58 | 58 | } |
| 59 | ||
| 60 | ||
| 61 | ||
| 62 | ||
| toggle raw diff | ||
commands/1921dump.c
|   | ||
| 176 | 176 | |
| 177 | 177 | exit(0); |
| 178 | 178 | } |
| 179 | ||
| 180 | ||
| 181 | ||
| 182 | ||
| toggle raw diff | ||
commands/1921mission.c
|   | ||
| 122 | 122 | |
| 123 | 123 | exit(0); |
| 124 | 124 | } |
| 125 | ||
| 126 | ||
| 127 | ||
| 128 | ||
| toggle raw diff | ||
commands/2406.c
|   | ||
| 64 | 64 | |
| 65 | 65 | exit(0); |
| 66 | 66 | } |
| 67 | ||
| 68 | ||
| 69 | ||
| 70 | ||
| toggle raw diff | ||
commands/2438.c
|   | ||
| 43 | 43 | |
| 44 | 44 | exit(0); |
| 45 | 45 | } |
| 46 | ||
| 47 | ||
| 48 | ||
| 49 | ||
| toggle raw diff | ||
commands/Makefile.in
|   | ||
| 1 | 1 | # Makefile for the 1wire commands |
| 2 | 2 | # |
| 3 | 3 | # Copyright (c) 2004 Dustin Sallings <dustin@spy.net> |
| 4 | ||
| 5 | ||
| 6 | 4 | |
| 7 | 5 | SHELL=/bin/sh |
| 8 | 6 | AR=@AR@ |
| toggle raw diff | ||
commands/lookup.c
|   | ||
| 42 | 42 | mlan->destroy(mlan); |
| 43 | 43 | return(0); |
| 44 | 44 | } |
| 45 | ||
| 46 | ||
| 47 | ||
| 48 | ||
| toggle raw diff | ||
commands/mlanscm.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2001 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 399 | 399 | gh_enter(argc, argv, inner_main); |
| 400 | 400 | return(0); |
| 401 | 401 | } |
| 402 | ||
| 403 | ||
| 404 | ||
| 405 | ||
| toggle raw diff | ||
commands/sample_devices.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | /*{{{ Includes */ |
| … | … | |
| 902 | 902 | /*}}}*/ |
| 903 | 903 | |
| 904 | 904 | /* |
| 905 | ||
| 906 | 905 | * vim: foldmethod=marker |
| 907 | 906 | */ |
| toggle raw diff | ||
commands/sample_devices.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2004 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef SAMPLE_DEVICES_H |
| toggle raw diff | ||
commands/sd_server.c
|   | ||
| 630 | 630 | /* }}}1 */ |
| 631 | 631 | |
| 632 | 632 | /* |
| 633 | ||
| 634 | 633 | * vim: foldmethod=marker |
| 635 | 634 | */ |
| toggle raw diff | ||
commands/search.c
|   | ||
| 72 | 72 | |
| 73 | 73 | return(0); |
| 74 | 74 | } |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | ||
| toggle raw diff | ||
commands/slew.c
|   | ||
| 50 | 50 | mlan->destroy(mlan); |
| 51 | 51 | return(0); |
| 52 | 52 | } |
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | ||
| toggle raw diff | ||
commands/storage.c
|   | ||
| 328 | 328 | |
| 329 | 329 | exit(0); |
| 330 | 330 | } |
| 331 | ||
| 332 | ||
| 333 | ||
| 334 | ||
| toggle raw diff | ||
configure.in
|   | ||
| 1 | ||
| 2 | 1 | dnl Process this file with autoconf to produce a configure script. |
| 3 | 2 | AC_INIT(mlan/mlan.c) |
| 4 | 3 | |
| toggle raw diff | ||
mlan/Makefile.in
|   | ||
| 1 | 1 | # Makefile for the mlan library |
| 2 | 2 | # |
| 3 | 3 | # Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 4 | ||
| 5 | ||
| 6 | 4 | |
| 7 | 5 | SHELL=/bin/sh |
| 8 | 6 | AR=@AR@ |
| toggle raw diff | ||
mlan/com.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 329 | 329 | } |
| 330 | 330 | /* mlan_debug(mlan, 2, ("Returning from break\n")); */ |
| 331 | 331 | } |
| 332 | ||
| 333 | ||
| 334 | ||
| 335 | ||
| toggle raw diff | ||
mlan/commands.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef COMMANDS_H |
| … | … | |
| 41 | 41 | #define DS2438READ_SCRATCHPAD 0xbe |
| 42 | 42 | |
| 43 | 43 | #endif /* COMMANDS_H */ |
| 44 | ||
| 45 | ||
| 46 | ||
| 47 | ||
| toggle raw diff | ||
mlan/common.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2004 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| toggle raw diff | ||
mlan/devices.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 131 | 131 | } |
| 132 | 132 | return(ret); |
| 133 | 133 | } |
| 134 | ||
| 135 | ||
| 136 | ||
| 137 | ||
| toggle raw diff | ||
mlan/ds1920.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 200 | 200 | data.valid=TRUE; |
| 201 | 201 | return(data); |
| 202 | 202 | } |
| 203 | ||
| 204 | ||
| 205 | ||
| 206 | ||
| toggle raw diff | ||
mlan/ds1920.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef DS1920_H |
| … | … | |
| 26 | 26 | #define ds1920temp_convert_in(a) ( (int) (((a)+0.25)*2) ) |
| 27 | 27 | |
| 28 | 28 | #endif /* DS1920_H */ |
| 29 | ||
| 30 | ||
| 31 | ||
| 32 | ||
| toggle raw diff | ||
mlan/ds1921.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2001 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | #include <stdio.h> |
| 7 | 5 | #include <assert.h> |
| … | … | |
| 594 | 594 | finished: |
| 595 | 595 | return(data); |
| 596 | 596 | } |
| 597 | ||
| 598 | ||
| 599 | ||
| 600 | ||
| toggle raw diff | ||
mlan/ds1921.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef DS1921_H |
| … | … | |
| 124 | 124 | #define ds1921temp_convert_in(a) ( ((a)*2) + 80) |
| 125 | 125 | |
| 126 | 126 | #endif /* DS1921_H */ |
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | ||
| toggle raw diff | ||
mlan/ds2406.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 145 | 145 | rv=setDS2406Status(mlan, serial, status); |
| 146 | 146 | return(rv); |
| 147 | 147 | } |
| 148 | ||
| 149 | ||
| 150 | ||
| 151 | ||
| toggle raw diff | ||
mlan/ds2406.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef DS2406_H |
| … | … | |
| 19 | 19 | int setDS2406Switch(MLan *mlan, uchar *serial, int switchPort, int onoff); |
| 20 | 20 | |
| 21 | 21 | #endif /* DS2406_H */ |
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | ||
| toggle raw diff | ||
mlan/ds2438.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2001 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 270 | 270 | |
| 271 | 271 | return(data); |
| 272 | 272 | } |
| 273 | ||
| 274 | ||
| 275 | ||
| 276 | ||
| toggle raw diff | ||
mlan/ds2438.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef DS2438_H |
| … | … | |
| 18 | 18 | struct ds2438_data getDS2438Data(MLan *mlan, uchar *serial); |
| 19 | 19 | |
| 20 | 20 | #endif /* DS2438_H */ |
| 21 | ||
| 22 | ||
| 23 | ||
| 24 | ||
| toggle raw diff | ||
mlan/ds2480.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 107 | 107 | |
| 108 | 108 | return(mlan->baud); |
| 109 | 109 | } |
| 110 | ||
| 111 | ||
| 112 | ||
| 113 | ||
| toggle raw diff | ||
mlan/mlan-defines.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef MLAN_UTILITY_H |
| … | … | |
| 205 | 205 | #define FTOC(a) (((float)a-32.0)*5.0/9.0) |
| 206 | 206 | |
| 207 | 207 | #endif /* MLAN_UTILITY_H */ |
| 208 | ||
| 209 | ||
| 210 | ||
| 211 | ||
| toggle raw diff | ||
mlan/mlan.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #include <stdio.h> |
| … | … | |
| 903 | 903 | } |
| 904 | 904 | return(rv); |
| 905 | 905 | } |
| 906 | ||
| 907 | ||
| 908 | ||
| 909 | ||
| toggle raw diff | ||
mlan/mlan.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 1999 Dustin Sallings <dustin@spy.net> |
| 3 | ||
| 4 | ||
| 5 | 3 | */ |
| 6 | 4 | |
| 7 | 5 | #ifndef MLAN_H |
| … | … | |
| 111 | 111 | |
| 112 | 112 | |
| 113 | 113 | #endif /* MLAN_H */ |
| 114 | ||
| 115 | ||
| 116 | ||
| 117 | ||
| toggle raw diff | ||
mlan/utility.c
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | 3 | * |
| 4 | ||
| 5 | ||
| 6 | 4 | * This file deals with stuff that's missing on some systems. |
| 7 | 5 | */ |
| 8 | 6 | |
| … | … | |
| 41 | 41 | r[j]=0x00; |
| 42 | 42 | return(r); |
| 43 | 43 | } |
| 44 | ||
| 45 | ||
| 46 | ||
| 47 | ||
| toggle raw diff | ||
mlan/utility.h
|   | ||
| 1 | 1 | /* |
| 2 | 2 | * Copyright (c) 2002 Dustin Sallings <dustin@spy.net> |
| 3 | 3 | * |
| 4 | ||
| 5 | ||
| 6 | 4 | * This file deals with stuff that's missing on some systems. |
| 7 | 5 | */ |
| 8 | 6 | |
| … | … | |
| 26 | 26 | char *get_serial(uchar *serial); |
| 27 | 27 | |
| 28 | 28 | #endif /* UTILITY_H */ |
| 29 | ||
| 30 | ||
| 31 |
