save loops

Dependencies:   mbed

Committer:
mbedalvaro
Date:
Tue Dec 02 04:39:15 2014 +0000
Revision:
0:df6fdd9b99f0
this new version of skinGames will have a function that stops scanning as the laser reaches the same position (i.e., loops) with a certain precision. It is for extracting contours for Takashita project. It can then save on a file or send on osc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedalvaro 0:df6fdd9b99f0 1 /*****************************************************************************
mbedalvaro 0:df6fdd9b99f0 2 * auth.h - PPP Authentication and phase control header file.
mbedalvaro 0:df6fdd9b99f0 3 *
mbedalvaro 0:df6fdd9b99f0 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
mbedalvaro 0:df6fdd9b99f0 5 * portions Copyright (c) 1998 Global Election Systems Inc.
mbedalvaro 0:df6fdd9b99f0 6 *
mbedalvaro 0:df6fdd9b99f0 7 * The authors hereby grant permission to use, copy, modify, distribute,
mbedalvaro 0:df6fdd9b99f0 8 * and license this software and its documentation for any purpose, provided
mbedalvaro 0:df6fdd9b99f0 9 * that existing copyright notices are retained in all copies and that this
mbedalvaro 0:df6fdd9b99f0 10 * notice and the following disclaimer are included verbatim in any
mbedalvaro 0:df6fdd9b99f0 11 * distributions. No written agreement, license, or royalty fee is required
mbedalvaro 0:df6fdd9b99f0 12 * for any of the authorized uses.
mbedalvaro 0:df6fdd9b99f0 13 *
mbedalvaro 0:df6fdd9b99f0 14 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
mbedalvaro 0:df6fdd9b99f0 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
mbedalvaro 0:df6fdd9b99f0 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
mbedalvaro 0:df6fdd9b99f0 17 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
mbedalvaro 0:df6fdd9b99f0 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
mbedalvaro 0:df6fdd9b99f0 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
mbedalvaro 0:df6fdd9b99f0 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
mbedalvaro 0:df6fdd9b99f0 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
mbedalvaro 0:df6fdd9b99f0 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
mbedalvaro 0:df6fdd9b99f0 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbedalvaro 0:df6fdd9b99f0 24 *
mbedalvaro 0:df6fdd9b99f0 25 ******************************************************************************
mbedalvaro 0:df6fdd9b99f0 26 * REVISION HISTORY
mbedalvaro 0:df6fdd9b99f0 27 *
mbedalvaro 0:df6fdd9b99f0 28 * 03-01-01 Marc Boucher <marc@mbsi.ca>
mbedalvaro 0:df6fdd9b99f0 29 * Ported to lwIP.
mbedalvaro 0:df6fdd9b99f0 30 * 97-12-04 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
mbedalvaro 0:df6fdd9b99f0 31 * Original derived from BSD pppd.h.
mbedalvaro 0:df6fdd9b99f0 32 *****************************************************************************/
mbedalvaro 0:df6fdd9b99f0 33 /*
mbedalvaro 0:df6fdd9b99f0 34 * pppd.h - PPP daemon global declarations.
mbedalvaro 0:df6fdd9b99f0 35 *
mbedalvaro 0:df6fdd9b99f0 36 * Copyright (c) 1989 Carnegie Mellon University.
mbedalvaro 0:df6fdd9b99f0 37 * All rights reserved.
mbedalvaro 0:df6fdd9b99f0 38 *
mbedalvaro 0:df6fdd9b99f0 39 * Redistribution and use in source and binary forms are permitted
mbedalvaro 0:df6fdd9b99f0 40 * provided that the above copyright notice and this paragraph are
mbedalvaro 0:df6fdd9b99f0 41 * duplicated in all such forms and that any documentation,
mbedalvaro 0:df6fdd9b99f0 42 * advertising materials, and other materials related to such
mbedalvaro 0:df6fdd9b99f0 43 * distribution and use acknowledge that the software was developed
mbedalvaro 0:df6fdd9b99f0 44 * by Carnegie Mellon University. The name of the
mbedalvaro 0:df6fdd9b99f0 45 * University may not be used to endorse or promote products derived
mbedalvaro 0:df6fdd9b99f0 46 * from this software without specific prior written permission.
mbedalvaro 0:df6fdd9b99f0 47 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
mbedalvaro 0:df6fdd9b99f0 48 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
mbedalvaro 0:df6fdd9b99f0 49 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
mbedalvaro 0:df6fdd9b99f0 50 *
mbedalvaro 0:df6fdd9b99f0 51 */
mbedalvaro 0:df6fdd9b99f0 52
mbedalvaro 0:df6fdd9b99f0 53 #ifndef AUTH_H
mbedalvaro 0:df6fdd9b99f0 54 #define AUTH_H
mbedalvaro 0:df6fdd9b99f0 55
mbedalvaro 0:df6fdd9b99f0 56 /***********************
mbedalvaro 0:df6fdd9b99f0 57 *** PUBLIC FUNCTIONS ***
mbedalvaro 0:df6fdd9b99f0 58 ***********************/
mbedalvaro 0:df6fdd9b99f0 59
mbedalvaro 0:df6fdd9b99f0 60 /* we are starting to use the link */
mbedalvaro 0:df6fdd9b99f0 61 void link_required (int);
mbedalvaro 0:df6fdd9b99f0 62
mbedalvaro 0:df6fdd9b99f0 63 /* we are finished with the link */
mbedalvaro 0:df6fdd9b99f0 64 void link_terminated (int);
mbedalvaro 0:df6fdd9b99f0 65
mbedalvaro 0:df6fdd9b99f0 66 /* the LCP layer has left the Opened state */
mbedalvaro 0:df6fdd9b99f0 67 void link_down (int);
mbedalvaro 0:df6fdd9b99f0 68
mbedalvaro 0:df6fdd9b99f0 69 /* the link is up; authenticate now */
mbedalvaro 0:df6fdd9b99f0 70 void link_established (int);
mbedalvaro 0:df6fdd9b99f0 71
mbedalvaro 0:df6fdd9b99f0 72 /* a network protocol has come up */
mbedalvaro 0:df6fdd9b99f0 73 void np_up (int, u16_t);
mbedalvaro 0:df6fdd9b99f0 74
mbedalvaro 0:df6fdd9b99f0 75 /* a network protocol has gone down */
mbedalvaro 0:df6fdd9b99f0 76 void np_down (int, u16_t);
mbedalvaro 0:df6fdd9b99f0 77
mbedalvaro 0:df6fdd9b99f0 78 /* a network protocol no longer needs link */
mbedalvaro 0:df6fdd9b99f0 79 void np_finished (int, u16_t);
mbedalvaro 0:df6fdd9b99f0 80
mbedalvaro 0:df6fdd9b99f0 81 /* peer failed to authenticate itself */
mbedalvaro 0:df6fdd9b99f0 82 void auth_peer_fail (int, u16_t);
mbedalvaro 0:df6fdd9b99f0 83
mbedalvaro 0:df6fdd9b99f0 84 /* peer successfully authenticated itself */
mbedalvaro 0:df6fdd9b99f0 85 void auth_peer_success (int, u16_t, char *, int);
mbedalvaro 0:df6fdd9b99f0 86
mbedalvaro 0:df6fdd9b99f0 87 /* we failed to authenticate ourselves */
mbedalvaro 0:df6fdd9b99f0 88 void auth_withpeer_fail (int, u16_t);
mbedalvaro 0:df6fdd9b99f0 89
mbedalvaro 0:df6fdd9b99f0 90 /* we successfully authenticated ourselves */
mbedalvaro 0:df6fdd9b99f0 91 void auth_withpeer_success (int, u16_t);
mbedalvaro 0:df6fdd9b99f0 92
mbedalvaro 0:df6fdd9b99f0 93 /* check authentication options supplied */
mbedalvaro 0:df6fdd9b99f0 94 void auth_check_options (void);
mbedalvaro 0:df6fdd9b99f0 95
mbedalvaro 0:df6fdd9b99f0 96 /* check what secrets we have */
mbedalvaro 0:df6fdd9b99f0 97 void auth_reset (int);
mbedalvaro 0:df6fdd9b99f0 98
mbedalvaro 0:df6fdd9b99f0 99 /* Check peer-supplied username/password */
mbedalvaro 0:df6fdd9b99f0 100 u_char check_passwd (int, char *, int, char *, int, char **, int *);
mbedalvaro 0:df6fdd9b99f0 101
mbedalvaro 0:df6fdd9b99f0 102 /* get "secret" for chap */
mbedalvaro 0:df6fdd9b99f0 103 int get_secret (int, char *, char *, char *, int *, int);
mbedalvaro 0:df6fdd9b99f0 104
mbedalvaro 0:df6fdd9b99f0 105 /* check if IP address is authorized */
mbedalvaro 0:df6fdd9b99f0 106 int auth_ip_addr (int, u32_t);
mbedalvaro 0:df6fdd9b99f0 107
mbedalvaro 0:df6fdd9b99f0 108 /* check if IP address is unreasonable */
mbedalvaro 0:df6fdd9b99f0 109 int bad_ip_adrs (u32_t);
mbedalvaro 0:df6fdd9b99f0 110
mbedalvaro 0:df6fdd9b99f0 111 #endif /* AUTH_H */