linux/fs/smb/server/mgmt/user_config.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *   Copyright (C) 2018 Samsung Electronics Co., Ltd.
 */

#ifndef __USER_CONFIG_MANAGEMENT_H__
#define __USER_CONFIG_MANAGEMENT_H__

#include "../glob.h"

struct ksmbd_user {};

static inline bool user_guest(struct ksmbd_user *user)
{}

static inline void set_user_flag(struct ksmbd_user *user, int flag)
{}

static inline int test_user_flag(struct ksmbd_user *user, int flag)
{}

static inline void set_user_guest(struct ksmbd_user *user)
{}

static inline char *user_passkey(struct ksmbd_user *user)
{}

static inline char *user_name(struct ksmbd_user *user)
{}

static inline unsigned int user_uid(struct ksmbd_user *user)
{}

static inline unsigned int user_gid(struct ksmbd_user *user)
{}

struct ksmbd_user *ksmbd_login_user(const char *account);
struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp);
void ksmbd_free_user(struct ksmbd_user *user);
int ksmbd_anonymous_user(struct ksmbd_user *user);
bool ksmbd_compare_user(struct ksmbd_user *u1, struct ksmbd_user *u2);
#endif /* __USER_CONFIG_MANAGEMENT_H__ */