<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Makefile</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@
  * This software may be distributed under the &quot;MIT&quot; license included in the
  * README
  */
+
 #include &lt;assert.h&gt;
 #include &lt;string.h&gt;
 #include &lt;fcntl.h&gt;
@@ -17,16 +18,15 @@
 #include &lt;stdio.h&gt;      /* perror */
 #include &lt;errno.h&gt;      /* perror */
 #include &lt;stdlib.h&gt; /* for the default methods */
-
 #include &lt;ev.h&gt;
 
+#include &quot;ebb.h&quot;
+#include &quot;ebb_request_parser.h&quot;
 #ifdef HAVE_GNUTLS
-#  include &lt;gnutls/gnutls.h&gt;
-#  include &quot;rbtree.h&quot; /* for session_cache */
+# include &lt;gnutls/gnutls.h&gt;
+# include &quot;rbtree.h&quot; /* for session_cache */
 #endif
 
-#include &quot;ebb.h&quot;
-#include &quot;ebb_request_parser.h&quot;
 
 #define TRUE 1
 #define FALSE 0</diff>
      <filename>ebb.c</filename>
    </modified>
    <modified>
      <diff>@@ -4,18 +4,20 @@
  * This software may be distributed under the &quot;MIT&quot; license included in the
  * README
  */
-#ifndef server_h
-#define server_h
+#ifndef EBB_H
+#define EBB_H
+
+/* remove this if you want to embed libebb without GNUTLS */
+#define HAVE_GNUTLS 1
 
 #include &lt;sys/socket.h&gt;
 #include &lt;netinet/in.h&gt;
-#include &quot;ebb_request_parser.h&quot;
 #include &lt;ev.h&gt;
-
 #ifdef HAVE_GNUTLS
-#  include &lt;gnutls/gnutls.h&gt;
-#  include &quot;rbtree.h&quot; /* for ebb_server.session_cache */
-#endif
+# include &lt;gnutls/gnutls.h&gt;
+# include &quot;rbtree.h&quot; /* for ebb_server.session_cache */
+#endif 
+#include &quot;ebb_request_parser.h&quot;
 
 #define EBB_MAX_CONNECTIONS 1024
 
@@ -59,8 +61,10 @@ struct ebb_server {
 };
 
 void ebb_server_init( ebb_server *server, struct ev_loop *loop);
+#ifdef HAVE_GNUTLS
 void ebb_secure_server_init(ebb_server *server, struct ev_loop *loop, 
                             const char *cert_file, const char *key_file);
+#endif
 int ebb_server_listen_on_port(ebb_server *server, const int port);
 int ebb_server_listen_on_fd(ebb_server *server, const int sfd);
 void ebb_server_unlisten(ebb_server *server);
@@ -81,7 +85,7 @@ struct ebb_connection {
 #ifdef HAVE_GNUTLS
   ev_io handshake_watcher;     /* private */
   gnutls_session_t session;    /* private */
-#endif 
+#endif
 
   /* Public */
 </diff>
      <filename>ebb.h</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 /* Copyright (c) 2008 Derrick Coetzee
  * http://en.literateprograms.org/Red-black_tree_(C)?oldid=7982
+ * Small changes by Ryah Dahl
  * 
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the</diff>
      <filename>rbtree.h</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Makefile.am</filename>
    </removed>
    <removed>
      <filename>configure.ac</filename>
    </removed>
    <removed>
      <filename>examples/Makefile.am</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>7d6fc8431a76d8e0195f2bb39e97a1404215b9c4</id>
    </parent>
  </parents>
  <author>
    <name>Ryan</name>
    <email>ry@tinyclouds.org</email>
  </author>
  <url>http://github.com/ry/libebb/commit/b8d387595464527384f687373b17834948fc818a</url>
  <id>b8d387595464527384f687373b17834948fc818a</id>
  <committed-date>2008-07-28T06:44:13-07:00</committed-date>
  <authored-date>2008-07-28T06:44:00-07:00</authored-date>
  <message>fuck autoconf</message>
  <tree>15d5b9768a97fb014baa8f3d46d7d179a1f7ecb6</tree>
  <committer>
    <name>Ryan</name>
    <email>ry@tinyclouds.org</email>
  </committer>
</commit>
