Commit 52667f2c authored by xHire's avatar xHire
Browse files

Initial skeleton

Autotools
coincerd (daemon) with TODOs
coincer (client for interacting with daemon)
parents
# autotools stuff
/aclocal.m4
/autom4te.cache/
/build-aux/
/config.*
/configure
/INSTALL
/Makefile
/Makefile.in
autoconfig.*
.deps/
.dirstamp
stamp-h1
# built objects
*.o
# binaries
src/coincer
src/coincerd
Authors of Coincer
This diff is collapsed.
For changes done between single versions have a look at file NEWS.
For details of the development process have a look at the history log
of the git repository (you can find its on our homepage).
ACLOCAL_AMFLAGS = -I m4 --install
bin_PROGRAMS = src/coincerd src/coincer
coincerd_sources = \
src/coincerd.c
coincer_sources = \
src/coincer.c
Coincer 0.1.0
=============
Coincer
=======
#!/bin/sh
cd "`dirname $0`"
mkdir -p m4
autoreconf -i
dnl This file uses AC_CONFIG_MACRO_DIR, so we need Autoconf 2.58 or better.
AC_PREREQ([2.58])
dnl Initialize autoconf.
AC_INIT([Coincer], [0.0.99], [xhire@coincer.org], [coincer], [https://www.coincer.org/])
dnl Safety check - list a source file that wouldn't be in other directories:
AC_CONFIG_SRCDIR([src/coincerd.c])
dnl Put autotools auxiliary files in subdirectories to reduce clutter:
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([src/autoconfig.h])
dnl Enable "automake" to simplify creating makefiles:
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror])
AC_CONFIG_FILES([Makefile])
dnl Compiler flags
AM_CFLAGS="-std=c89 -Wall -Wextra"
dnl Checks for programs.
dnl C compiler
AC_PROG_CC
dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
dnl Do final output.
AC_SUBST([AM_CFLAGS])
AC_OUTPUT
/*
* Coincer
* Copyright (C) 2017 Coincer Developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
int main(int argc, char **argv)
{
/*
* TODO
*/
return 0;
}
/*
* Coincer
* Copyright (C) 2017 Coincer Developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
int main(void)
{
/*
* TODO
* - initialise network
* - load known peers
* - or seed
* - load configuration
* - try to connect to bitcoind and co.
* - init markets from the network
* - publish non-expired order [default: 1 hour]
* - check state of trades
*
* [could be 1 thread → libevent]
* - process network messages
* - await commands [via UNIX socket]
*
* - terminate on SIGTERM
*/
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment