Blame libopeniscsiusr/context.h

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