/*
 * Argus-5.0 Client Software. Tools to read, analyze and manage Argus data.
 * Copyright (c) 2000-2024 QoSient, LLC
 * All rights reserved.
 *
 * 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, 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., 675 Mass Ave, Cambridge, MA 02139, USA.  
 *
 */

#ifndef __RADHCP_ARGUS_DHCP_H
# define __RADHCP_ARGUS_DHCP_H
# include <stdbool.h>
# include "argus_mysql.h"
# include "argus_util.h"
# include "argus_parser.h"
# include "rabootp_interval_tree.h"

int
ArgusDhcpSqlQueryOneTable(MYSQL_STMT *stmt, MYSQL_BIND *resbind,
                          const char * const query, int querylen,
                          bool *have_resbind, size_t ncols);

int
ArgusDhcpSqlQuery(const struct ArgusParserStruct * const parser,
                  const struct ArgusAdjustStruct * const nadp,
                  const unsigned char * const clientmac,
                  const char * const table, bool pullup,
                  struct ArgusDhcpIntvlNode *nodes, ssize_t nleases);
#endif
