Skip to content

Commit 854cf4a

Browse files
committed
add headers to files
1 parent c24aa2f commit 854cf4a

18 files changed

+774
-0
lines changed

COPYING

+343
Large diffs are not rendered by default.

README

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
The Computer Science House Drink Server, (re-)written in erlang.
2+
3+
For more information about the project:
4+
5+
http://www.csh.rit.edu/projects
6+
7+
Legal Info:
8+
9+
Copyright 2008 by Dan Willemsen <[email protected]>
10+
11+
This program is free software; you can redistribute it and/or modify
12+
it under the terms of the GNU General Public License as published by
13+
the Free Software Foundation; either version 2 of the License, or
14+
(at your option) any later version.
15+
16+
This program is distributed in the hope that it will be useful,
17+
but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
GNU General Public License for more details.
20+
21+
You should have received a copy of the GNU General Public License
22+
along with this program; if not, write to the Free Software
23+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24+
25+
There are seperate modules under the source directory that may contain
26+
different licenses, view the README/COPYING or similar files in the directories
27+
for more information:
28+
29+
src/pam contains a PAM library for Erlang
30+
src/mysql contains a Mysql library for Erlang
31+
src/eldap contains a LDAP library for Erlang

include/drink_config.hrl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_config.hrl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-define(MACHINE_LISTEN_PORT, 4343).
227
-define(SUNDAY_SERVER_PORT, 4242).
328
-define(FINGER_SERVER_PORT, 79).

include/drink_mnesia.hrl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_mnesia.hrl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-record (machine, {machine, password, public_ip, available_sensor = false}).
227
-record (slot, {machine, num, name, price = 10000, avail = 0}).
328

include/user.hrl

+25
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : user.hrl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-record (user, {username, admin = false, credits = 0, ibuttons = [], adminuser = nil}).

src/drink_app.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_app.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_app).
227
-behaviour (application).
328

src/drink_machine.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_machine.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_machine).
227
-behaviour (gen_server).
328

src/drink_machine_comm.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_machine_comm.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_machine_comm).
227

328
-export ([start_link/0]).

src/drink_machines_sup.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_machines_sup.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_machines_sup).
227
-behaviour (supervisor).
328

src/drink_mnesia.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_mnesia.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_mnesia).
227
-export ([initialize/0]).
328
-export ([log_drop/1, log_money/1, log_temperature/1]).

src/drink_sup.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_sup.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_sup).
227
-behaviour (supervisor).
328

src/drink_web.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_web.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_web).
227

328
-export ([out/1]).

src/drink_web_events.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : drink_web_events.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (drink_web_events).
227
-behaviour (gen_server).
328

src/finger_server.erl

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
%%%-------------------------------------------------------------------
2+
%%% File : finger_server.erl
3+
%%% Author : Dan Willemsen <[email protected]>
4+
%%% Purpose :
5+
%%%
6+
%%%
7+
%%% edrink, Copyright (C) 2008 Dan Willemsen
8+
%%%
9+
%%% This program is free software; you can redistribute it and/or
10+
%%% modify it under the terms of the GNU General Public License as
11+
%%% published by the Free Software Foundation; either version 2 of the
12+
%%% License, or (at your option) any later version.
13+
%%%
14+
%%% This program is distributed in the hope that it will be useful,
15+
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
%%% General Public License for more details.
18+
%%%
19+
%%% You should have received a copy of the GNU General Public License
20+
%%% along with this program; if not, write to the Free Software
21+
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22+
%%% 02111-1307 USA
23+
%%%
24+
%%%-------------------------------------------------------------------
25+
126
-module (finger_server).
227

328
-export ([start_link/0]).

0 commit comments

Comments
 (0)