LibJuno 0.23.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
hash_djb2.h
Go to the documentation of this file.
1/*
2 MIT License
3
4 Copyright (c) 2025 Robin A. Onsay
5
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files
8 (the "Software"), to deal in the Software without restriction,
9 including without limitation the rights to use, copy, modify, merge,
10 publish, distribute, sublicense, and/or sell copies of the Software,
11 and to permit persons to whom the Software is furnished to do so,
12 subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
16*/
17
27#ifndef JUNO_HASH_DJB2_H
28#define JUNO_HASH_DJB2_H
29#include "juno/module.h"
30#include "juno/status.h"
31#include "juno/hash/hash_api.h"
32#ifdef __cplusplus
33extern "C"
34{
35#endif
36
37
39
40JUNO_MODULE_DERIVE(JUNO_HASH_DJB2_T, JUNO_HASH_BASE_T, JUNO_MODULE_EMPTY);
41
42#ifdef JUNO_HASH_DEFAULT
52JUNO_MODULE(JUNO_HASH_T, JUNO_HASH_API_T, JUNO_HASH_BASE_T,
53 JUNO_HASH_DJB2_T tJunoHashDjb2;
54);
55#endif
56
57/* TODO: Insert initialization arguments for module members here*/
58JUNO_STATUS_T JunoHash_Djb2Api(JUNO_HASH_T *ptJunoHash, JUNO_FAILURE_HANDLER_T pfcnFailureHandler, JUNO_USER_DATA_T *pvFailureUserData);
59#ifdef __cplusplus
60}
61#endif
62#endif // JUNO_HASH_DJB2_H
63
JUNO_STATUS_T JunoHash_Djb2Api(JUNO_HASH_T *ptJunoHash, JUNO_FAILURE_HANDLER_T pfcnFailureHandler, JUNO_USER_DATA_T *pvFailureUserData)
Definition juno_hash.c:60
#define JUNO_MODULE_DERIVE_DECLARE(name)
Definition module.h:36
#define JUNO_MODULE_EMPTY
Definition module.h:50
#define JUNO_MODULE(name, API, base, derived)
Definition module.h:67
#define JUNO_MODULE_DERIVE(name, base, members)
Definition module.h:96
void(* JUNO_FAILURE_HANDLER_T)(JUNO_STATUS_T tStatus, const char *pcCustomMessage, JUNO_USER_DATA_T *pvUserData)
Definition status.h:44
enum JUNO_STATUS_TAG JUNO_STATUS_T
void JUNO_USER_DATA_T
Definition status.h:43
Definition hash_api.h:45