/* GNU Guix --- Functional package management for GNU
   Copyright © 2020 Maxime Devos <maxime.devos@student.kuleuven.be>

   This file is part of GNU Guix.

   GNU Guix 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.

   GNU Guix 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 GNU Guix.  If not, see <http://www.gnu.org/licenses/>. */

#ifndef _REHASH_EXTRA_GNUNET_PROTOCOLS_H
#define _REHASH_EXTRA_GNUNET_PROTOCOLS_H

#include <gnunet/gnunet_protocols.h>
#include "rehash_service.h"

/* TODO: register message types */
#define _GNUNET_MESSAGE_TYPE_REHASH_START 48400

/**
 * C->S: Client wants to search for hash->hash mappings.
 */
#ifndef GNUNET_MESSAGE_TYPE_REHASH_CLIENT_GET
#define GNUNET_MESSAGE_TYPE_REHASH_CLIENT_GET _GNUNET_MESSAGE_TYPE_REHASH_START
#endif

/**
 * S->C: Service returns result to client.
 */
#ifndef GNUNET_MESSAGE_TYPE_REHASH_CLIENT_RESULT
#define GNUNET_MESSAGE_TYPE_REHASH_CLIENT_RESULT (_GNUNET_MESSAGE_TYPE_REHASH_START + 1)
#endif

/**
 * C->S: Client wants to stop search for hash->hash mappings.
 */
#ifndef GNUNET_MESSAGE_TYPE_REHASH_CLIENT_GET_STOP
#define GNUNET_MESSAGE_TYPE_REHASH_CLIENT_GET_STOP (_GNUNET_MESSAGE_TYPE_REHASH_START + 2)
#endif

/**
 * C->S: Client wants to store hash->hash mapping.
 */
#ifndef GNUNET_MESSAGE_TYPE_REHASH_CLIENT_PUT
#define GNUNET_MESSAGE_TYPE_REHASH_CLIENT_PUT (_GNUNET_MESSAGE_TYPE_REHASH_START + 3)
#endif

#endif
