summaryrefslogtreecommitdiffhomepage
path: root/src/internal/ntux_driver_impl.h
blob: 6c635dee92095df4d7cc15344c6c629ae205f7f9 (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
26
27
28
29
30
31
32
33
34
35
36
#ifndef NTUX_DRIVER_IMPL_H
#define NTUX_DRIVER_IMPL_H

#include <ntapi/ntapi.h>
#include <psxscl/psxscl.h>
#include <stdint.h>
#include <stdio.h>

#include <ntux/ntux.h>
#include "argv/argv.h"

#define NTUX_OPTV_ELEMENTS 64

extern   const struct argv_option ntux_default_options[];
extern   const ntapi_vtbl * ntux_ntapi;

#define  ntapi ntux_ntapi

enum app_tags {
	TAG_HELP,
	TAG_VERSION,
	TAG_CMD,
};

struct ntux_driver_ctx_impl {
	struct ntux_common_ctx      cctx;
	struct ntux_driver_ctx      ctx;
	struct __psx_context        xctx;
	const char *                eunit;
	struct ntux_error_info **   errinfp;
	struct ntux_error_info **   erricap;
	struct ntux_error_info *    erriptr[64];
	struct ntux_error_info      erribuf[64];
};

#endif