File: node_config.h

package info (click to toggle)
dlm 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 960 kB
  • sloc: ansic: 15,665; makefile: 376; python: 274; sh: 150
file content (31 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright 2020 Red Hat, Inc.
 *
 * This copyrighted material is made available to anyone wishing to use,
 * modify, copy, or redistribute it subject to the terms and conditions
 * of the GNU General Public License v2 or (at your option) any later version.
 */

#ifndef _NODE_CONFIG_H_
#define _NODE_CONFIG_H_

#include <stdint.h>

struct node_config {
	uint32_t mark;
};

/*
 * Returns -ENOENT if path does not exist or there is no
 * config for nodeid in the file.
 *
 * Returns -EXYZ if there's a problem with the config.
 *
 * Returns 0 if a config was found with no problems.
 */

int node_config_init(const char *path);

const struct node_config *node_config_get(int nodeid);

#endif