blob: cef07da972ce70670492a29a5c664ca610532269 [file] [log] [blame]
mardyk017b51dbe2024-01-17 15:25:36 -06001/*
2 * Copyright (c) 2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7
8#ifndef NFIFO_H
9#define NFIFO_H
10
11#define CMP_SUCCESS 0
12#define NFIFO_Q_THRESHOLD 10
13
14#include <stddef.h>
15#include <stdio.h>
16#include <stdlib.h>
17#include <string.h>
18#include "smcmalloc.h"
19
20struct nfifo {
21 char **lnme;
22 int nent;
23 int thent;
24};
25
26void nfifoinit(struct nfifo *nf, struct memmod *mmod);
27void pushnme(char *nme, struct nfifo *nf, struct memmod *mmod);
28char *readnme(int ent, struct nfifo *nf, struct memmod *mmod);
29int searchnme(char *nme, struct nfifo *nf, struct memmod *mmod);
30void printent(struct nfifo *nf);
31
32#endif /* NFIFO_H */