Commit 544996e63339d416faa922cf08d5075d3f0148ae

Got rid of arch junk.

Commit diff

Makefile.in

 
11# Makefile for the mlan library
22#
33# Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
4#
5# $Id: Makefile.in,v 1.23 2002/01/29 07:48:42 dustin Exp $
6# arch-tag: 5D00801E-13E5-11D8-B7FE-000393CFE6B8
74
85SHELL=/bin/sh
96AR=@AR@
toggle raw diff

README.ibutton

 
105105 The serial number of the device to retrieve all the settings
106106 for.
107107
108
109--
110# arch-tag: 10193B13-77E7-11D8-BA36-000A957659CC
toggle raw diff

TODO

 
22 Build a test suite to validate integrity and stuff.
33 Add max connection lifetime and read timeouts and stuff.
44 Add a live update mode.
5
6--
7# arch-tag: 5341807-599-118-82-0030187026
toggle raw diff

arch.config

 
1# arch-tag: 46E89C6A-13E7-11D8-8222-000393CFE6B8
2
31# Need mymalloc
42./mymalloc dustin@spy.net--projects/clib--mymalloc--1.0
53./stringlib dustin@spy.net--projects-2006/clib--strings--1.0
toggle raw diff

builddist

 
11#!/bin/sh
2# arch-tag: 435F17CE-77E9-11D8-8F7C-000A957659CC
32
43fn=ibutton.tar
54
toggle raw diff

collection/Makefile.in

 
1# arch-tag: C3C33271-13E5-11D8-B15A-000393CFE6B8
21SHELL=/bin/sh
32AR=@AR@
43RANLIB=@RANLIB@
toggle raw diff

collection/collection.h

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: collection.h,v 1.3 2002/01/30 09:52:07 dustin Exp $
53 */
64
75#ifndef COLLECTION_H
3030#define verboseprint(a, b) if(col_verbose>=a) { printf b; }
3131
3232#endif /* COLLECTION_H */
33
34/*
35 * arch-tag: BBEE73A9-13E5-11D8-9CB1-000393CFE6B8
36 */
toggle raw diff

collection/collector.c

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: collector.c,v 1.10 2002/01/29 23:07:16 dustin Exp $
53 */
64
75#include <sys/types.h>
316316 mainloop();
317317 return(0);
318318}
319
320/*
321 * arch-tag: BBD6CC16-13E5-11D8-8785-000393CFE6B8
322 */
toggle raw diff

collection/data.c

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: data.c,v 1.15 2002/01/31 00:53:03 dustin Exp $
53 */
64
75#include <stdio.h>
273273 disposeOfLogEntry(entry);
274274}
275275#endif
276
277/*
278 * arch-tag: BBE0839E-13E5-11D8-A265-000393CFE6B8
279 */
toggle raw diff

collection/data.h

 
11/*
22 * Copyright (c) 2002 Dustin Sallings
3 *
4 * $Id: data.h,v 1.11 2002/01/30 21:09:17 dustin Exp $
53 */
64
75#ifndef DATA_H
6565void disposeOfRRDQueue(struct data_queue *dl);
6666
6767#endif
68
69/*
70 * arch-tag: BBF74734-13E5-11D8-9F04-000393CFE6B8
71 */
toggle raw diff

collection/sensors.sql

 
11-- Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
2--
3--
4--
52
63-- Different types of sensors
74create table sensor_types (
toggle raw diff

collection/storage-pgsql.c

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: storage-pgsql.c,v 1.4 2002/01/29 21:36:11 dustin Exp $
53 */
64
75#include <sys/types.h>
127127 }
128128}
129129#endif /* HAVE_LIBPQ_FE_H */
130
131/*
132 * arch-tag: BBE5FB3C-13E5-11D8-BC82-000393CFE6B8
133 */
toggle raw diff

collection/storage-pgsql.h

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: storage-pgsql.h,v 1.3 2002/01/29 21:36:12 dustin Exp $
53 */
64
75#ifndef STORAGE_PGSQL_H
2020void initPostgresStore();
2121
2222#endif /* STORAGE_PGSQL_H */
23
24/*
25 * arch-tag: BBFBC21E-13E5-11D8-969A-000393CFE6B8
26 */
toggle raw diff

collection/storage-rrd.c

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: storage-rrd.c,v 1.8 2002/01/30 21:10:30 dustin Exp $
53 */
64
75#include <sys/types.h>
161161 freeList(args);
162162}
163163#endif /* HAVE_RRD_H */
164
165/*
166 * arch-tag: BBEA7658-13E5-11D8-900C-000393CFE6B8
167 */
toggle raw diff

collection/storage-rrd.h

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: storage-rrd.h,v 1.2 2002/01/29 21:36:15 dustin Exp $
53 */
64
75#ifndef STORAGE_RRD_H
88void saveDataRRD(struct log_datum *p);
99
1010#endif /* STORAGE_RRD_H */
11
12/*
13 * arch-tag: BC002423-13E5-11D8-8599-000393CFE6B8
14 */
toggle raw diff

commands/1920.c

 
5656
5757 exit(0);
5858}
59
60/*
61 * arch-tag: 1FF35BA8-13E5-11D8-A40F-000393CFE6B8
62 */
toggle raw diff

commands/1921dump.c

 
176176
177177 exit(0);
178178}
179
180/*
181 * arch-tag: 1FF99273-13E5-11D8-BBB6-000393CFE6B8
182 */
toggle raw diff

commands/1921mission.c

 
122122
123123 exit(0);
124124}
125
126/*
127 * arch-tag: 1FFB7570-13E5-11D8-B9F6-000393CFE6B8
128 */
toggle raw diff

commands/2406.c

 
6464
6565 exit(0);
6666}
67
68/*
69 * arch-tag: 200018B3-13E5-11D8-9272-000393CFE6B8
70 */
toggle raw diff

commands/2438.c

 
4343
4444 exit(0);
4545}
46
47/*
48 * arch-tag: 2006DC74-13E5-11D8-9B02-000393CFE6B8
49 */
toggle raw diff

commands/Makefile.in

 
11# Makefile for the 1wire commands
22#
33# Copyright (c) 2004 Dustin Sallings <dustin@spy.net>
4#
5# arch-tag: 00905-43-118-82-0030187026
64
75SHELL=/bin/sh
86AR=@AR@
toggle raw diff

commands/lookup.c

 
4242 mlan->destroy(mlan);
4343 return(0);
4444}
45
46/*
47 * arch-tag: 204206D1-13E5-11D8-91CF-000393CFE6B8
48 */
toggle raw diff

commands/mlanscm.c

 
11/*
22 * Copyright (c) 2001 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: mlanscm.c,v 1.10 2002/01/30 08:18:13 dustin Exp $
53 */
64
75#include <stdio.h>
399399 gh_enter(argc, argv, inner_main);
400400 return(0);
401401}
402
403/*
404 * arch-tag: 204F3926-13E5-11D8-92C5-000393CFE6B8
405 */
toggle raw diff

commands/sample_devices.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: sample_devices.c,v 1.32 2002/01/30 00:46:21 dustin Exp $
53 */
64
75/*{{{ Includes */
902902/*}}}*/
903903
904904/*
905 * arch-tag: 205805D4-13E5-11D8-ADF3-000393CFE6B8
906905 * vim: foldmethod=marker
907906 */
toggle raw diff

commands/sample_devices.h

 
11/*
22 * Copyright (c) 2004 Dustin Sallings <dustin@spy.net>
3 *
4 * arch-tag: 35564-48-118-82-0030187026
53 */
64
75#ifndef SAMPLE_DEVICES_H
toggle raw diff

commands/sd_server.c

 
630630/* }}}1 */
631631
632632/*
633 * arch-tag: 623333-49-118-82-0030187026
634633 * vim: foldmethod=marker
635634 */
toggle raw diff

commands/search.c

 
7272
7373 return(0);
7474}
75
76/*
77 * arch-tag: 205CDD06-13E5-11D8-A7E6-000393CFE6B8
78 */
toggle raw diff

commands/slew.c

 
5050 mlan->destroy(mlan);
5151 return(0);
5252}
53
54/*
55 * arch-tag: 20612400-13E5-11D8-9FC5-000393CFE6B8
56 */
toggle raw diff

commands/storage.c

 
328328
329329 exit(0);
330330}
331
332/*
333 * arch-tag: 2068E1F8-13E5-11D8-A856-000393CFE6B8
334 */
toggle raw diff

configure.in

 
1dnl $Id: configure.in,v 1.18 2002/01/30 05:11:54 dustin Exp $
21dnl Process this file with autoconf to produce a configure script.
32AC_INIT(mlan/mlan.c)
43
toggle raw diff

mlan/Makefile.in

 
11# Makefile for the mlan library
22#
33# Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
4#
5# arch-tag: 6047-49-118-82-0030187026
64
75SHELL=/bin/sh
86AR=@AR@
toggle raw diff

mlan/com.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: com.c,v 1.11 2000/07/15 23:12:17 dustin Exp $
53 */
64
75#include <stdio.h>
329329 }
330330 /* mlan_debug(mlan, 2, ("Returning from break\n")); */
331331}
332
333/*
334 * arch-tag: 200A752B-13E5-11D8-BF6D-000393CFE6B8
335 */
toggle raw diff

mlan/commands.h

 
11/*
22 * Copyright (c) Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: commands.h,v 1.4 2001/08/29 09:27:50 dustin Exp $
53 */
64
75#ifndef COMMANDS_H
4141#define DS2438READ_SCRATCHPAD 0xbe
4242
4343#endif /* COMMANDS_H */
44
45/*
46 * arch-tag: 200C3FEE-13E5-11D8-9303-000393CFE6B8
47 */
toggle raw diff

mlan/common.c

 
11/*
22 * Copyright (c) 2004 Dustin Sallings <dustin@spy.net>
3 *
4 * arch-tag: 119160-40-118-82-0030187026
53 */
64
75#include <stdio.h>
toggle raw diff

mlan/devices.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: devices.c,v 1.19 2002/01/30 09:22:07 dustin Exp $
53 */
64
75#include <stdio.h>
131131 }
132132 return(ret);
133133}
134
135/*
136 * arch-tag: 200E12F8-13E5-11D8-AFE6-000393CFE6B8
137 */
toggle raw diff

mlan/ds1920.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds1920.c,v 1.7 2002/01/29 19:19:05 dustin Exp $
53 */
64
75#include <stdio.h>
200200 data.valid=TRUE;
201201 return(data);
202202}
203
204/*
205 * arch-tag: 2011D768-13E5-11D8-B2D7-000393CFE6B8
206 */
toggle raw diff

mlan/ds1920.h

 
11/*
22 * Copyright (c) Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds1920.h,v 1.3 2000/07/16 21:35:25 dustin Exp $
53 */
64
75#ifndef DS1920_H
2626#define ds1920temp_convert_in(a) ( (int) (((a)+0.25)*2) )
2727
2828#endif /* DS1920_H */
29
30/*
31 * arch-tag: 201AEEC1-13E5-11D8-A823-000393CFE6B8
32 */
toggle raw diff

mlan/ds1921.c

 
11/*
22 * Copyright (c) 2001 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds1921.c,v 1.30 2002/01/30 09:22:08 dustin Exp $
53 */
64#include <stdio.h>
75#include <assert.h>
594594 finished:
595595 return(data);
596596}
597
598/*
599 * arch-tag: 201EF4BC-13E5-11D8-BA49-000393CFE6B8
600 */
toggle raw diff

mlan/ds1921.h

 
11/*
22 * Copyright (c) Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds1921.h,v 1.10 2002/01/29 10:33:10 dustin Exp $
53 */
64
75#ifndef DS1921_H
124124#define ds1921temp_convert_in(a) ( ((a)*2) + 80)
125125
126126#endif /* DS1921_H */
127
128/*
129 * arch-tag: 20235CA4-13E5-11D8-90C8-000393CFE6B8
130 */
toggle raw diff

mlan/ds2406.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds2406.c,v 1.1 2000/09/17 09:20:09 dustin Exp $
53 */
64
75#include <stdio.h>
145145 rv=setDS2406Status(mlan, serial, status);
146146 return(rv);
147147}
148
149/*
150 * arch-tag: 2027C0E2-13E5-11D8-8AA9-000393CFE6B8
151 */
toggle raw diff

mlan/ds2406.h

 
11/*
22 * Copyright (c) Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds2406.h,v 1.1 2000/09/17 09:20:11 dustin Exp $
53 */
64
75#ifndef DS2406_H
1919int setDS2406Switch(MLan *mlan, uchar *serial, int switchPort, int onoff);
2020
2121#endif /* DS2406_H */
22
23/*
24 * arch-tag: 202E9470-13E5-11D8-9E67-000393CFE6B8
25 */
toggle raw diff

mlan/ds2438.c

 
11/*
22 * Copyright (c) 2001 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds2438.c,v 1.2 2001/10/04 05:54:08 dustin Exp $
53 */
64
75#include <stdio.h>
270270
271271 return(data);
272272}
273
274/*
275 * arch-tag: 20329D8C-13E5-11D8-B85B-000393CFE6B8
276 */
toggle raw diff

mlan/ds2438.h

 
11/*
22 * Copyright (c) Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds2438.h,v 1.1 2001/08/29 09:27:55 dustin Exp $
53 */
64
75#ifndef DS2438_H
1818struct ds2438_data getDS2438Data(MLan *mlan, uchar *serial);
1919
2020#endif /* DS2438_H */
21
22/*
23 * arch-tag: 203729CB-13E5-11D8-921A-000393CFE6B8
24 */
toggle raw diff

mlan/ds2480.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: ds2480.c,v 1.9 1999/12/09 08:48:04 dustin Exp $
53 */
64
75#include <stdio.h>
107107
108108 return(mlan->baud);
109109}
110
111/*
112 * arch-tag: 203B61AE-13E5-11D8-BD00-000393CFE6B8
113 */
toggle raw diff

mlan/mlan-defines.h

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: mlan.h,v 1.22 2002/01/30 09:51:20 dustin Exp $
53 */
64
75#ifndef MLAN_UTILITY_H
205205#define FTOC(a) (((float)a-32.0)*5.0/9.0)
206206
207207#endif /* MLAN_UTILITY_H */
208
209/*
210 * arch-tag: 221-92-118-93-0030187026
211 */
toggle raw diff

mlan/mlan.c

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: mlan.c,v 1.28 2002/01/30 09:51:18 dustin Exp $
53 */
64
75#include <stdio.h>
903903 }
904904 return(rv);
905905}
906
907/*
908 * arch-tag: 20466FD1-13E5-11D8-BE72-000393CFE6B8
909 */
toggle raw diff

mlan/mlan.h

 
11/*
22 * Copyright (c) 1999 Dustin Sallings <dustin@spy.net>
3 *
4 * $Id: mlan.h,v 1.22 2002/01/30 09:51:20 dustin Exp $
53 */
64
75#ifndef MLAN_H
111111
112112
113113#endif /* MLAN_H */
114
115/*
116 * arch-tag: 204AD731-13E5-11D8-A732-000393CFE6B8
117 */
toggle raw diff

mlan/utility.c

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
33 *
4 * $Id: utility.c,v 1.1 2002/01/23 23:56:04 dustin Exp $
5 *
64 * This file deals with stuff that's missing on some systems.
75 */
86
4141 r[j]=0x00;
4242 return(r);
4343}
44
45/*
46 * arch-tag: 206E5026-13E5-11D8-ABCC-000393CFE6B8
47 */
toggle raw diff

mlan/utility.h

 
11/*
22 * Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
33 *
4 * $Id: utility.h,v 1.1 2002/01/23 23:56:05 dustin Exp $
5 *
64 * This file deals with stuff that's missing on some systems.
75 */
86
2626char *get_serial(uchar *serial);
2727
2828#endif /* UTILITY_H */
29
30/*
31