blob: e36b7972a55afda507a7aa28a363247dfd1a6043 (
plain)
| 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
 | #pragma once
#include "../../config.h"
#include <stddef.h>
#include <stdlib.h>
#define DEFAULT_PORT "161"
typedef struct {
	char *address;
	char *community;
	unsigned int port;
	bool check_paper_out;
} check_hpjd_config;
check_hpjd_config check_hpjd_config_init() {
	check_hpjd_config tmp = {
		.address = NULL,
		.community = NULL,
		.port = (unsigned int)atoi(DEFAULT_PORT),
		.check_paper_out = true,
	};
	return tmp;
}
 |