Blame libopeniscsiusr/context.h

Packit eace71
/*
Packit eace71
 * Copyright (C) 2017-2018 Red Hat, Inc.
Packit eace71
 *
Packit eace71
 * This program is free software: you can redistribute it and/or modify
Packit eace71
 * it under the terms of the GNU General Public License as published by
Packit eace71
 * the Free Software Foundation, either version 3 of the License, or
Packit eace71
 * (at your option) any later version.
Packit eace71
 *
Packit eace71
 * This program is distributed in the hope that it will be useful,
Packit eace71
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit eace71
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit eace71
 * GNU General Public License for more details.
Packit eace71
 *
Packit eace71
 * You should have received a copy of the GNU General Public License
Packit eace71
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit eace71
 *
Packit eace71
 * Author: Gris Ge <fge@redhat.com>
Packit eace71
 */
Packit eace71
#ifndef __ISCSI_USR_CONTEXT_H__
Packit eace71
#define __ISCSI_USR_CONTEXT_H__
Packit eace71
Packit eace71
#include "idbm.h"
Packit eace71
#include <stdarg.h>
Packit eace71
Packit eace71
struct iscsi_context {
Packit eace71
	void (*log_func)(struct iscsi_context *ctx, int priority,
Packit eace71
			 const char *file, int line, const char *func_name,
Packit eace71
			 const char *format, va_list args);
Packit eace71
	int log_priority;
Packit eace71
	void *userdata;
Packit eace71
	struct idbm *db;
Packit eace71
};
Packit eace71
Packit eace71
Packit eace71
#endif /* End of __ISCSI_USR_CONTEXT_H__ */