summaryrefslogtreecommitdiffstats
path: root/plugins/solidigm/solidigm-ocp-version.c
blob: 4048cc1bd35dc7eff8d6b3a913a95dd1c86ce222 (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
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2023 Solidigm.
 *
 * Author: leonardo.da.cunha@solidigm.com
 */

#include <stdio.h>
#include "nvme.h"

int sldgm_ocp_version(int argc, char **argv, struct command *cmd, struct plugin *plugin)
{
	const char *desc = "Prints OCP extensions version of Solidigm plugin";

	OPT_ARGS(opts) = {
		OPT_END()
	};

	int err = argconfig_parse(argc, argv, desc, opts);

	if (!err)
		printf("1.0\n");

	return err;
}