/* * OwnTracks Recorder * Copyright (C) 2015-2016 Jan-Piet Mens * * 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 2 * 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include #include #include #include #include #if WITH_MQTT # include #endif #include "json.h" #include "storage.h" #include "util.h" #include "misc.h" #include "version.h" #if WITH_ENCRYPT # include #endif static void print_xml_line(char *line, void *param) { FILE *fp = (FILE *)param; fprintf(fp, "%s", line); } void usage(char *prog) { printf("Usage: %s [options..] [file ...]\n", prog); printf(" --help -h this message\n"); printf(" --list -l list users (or a user's (-u) devices\n"); printf(" --user username -u specify username ($OCAT_USERNAME)\n"); printf(" --device devicename -d specify device name ($OCAT_DEVICE)\n"); printf(" --from