mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3-libsmb: make parse_user_quota_record() public
For reuse by SMB2 client code. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2e7e5dfbc6
commit
7f08a3b031
@ -46,10 +46,10 @@ void free_ntquota_list(SMB_NTQUOTA_LIST **qt_list)
|
||||
return;
|
||||
}
|
||||
|
||||
static bool parse_user_quota_record(const uint8_t *rdata,
|
||||
unsigned int rdata_count,
|
||||
unsigned int *offset,
|
||||
SMB_NTQUOTA_STRUCT *pqt)
|
||||
bool parse_user_quota_record(const uint8_t *rdata,
|
||||
unsigned int rdata_count,
|
||||
unsigned int *offset,
|
||||
SMB_NTQUOTA_STRUCT *pqt)
|
||||
{
|
||||
int sid_len;
|
||||
SMB_NTQUOTA_STRUCT qt;
|
||||
|
@ -762,6 +762,10 @@ int cli_printjob_del(struct cli_state *cli, int job);
|
||||
|
||||
NTSTATUS cli_get_quota_handle(struct cli_state *cli, uint16_t *quota_fnum);
|
||||
void free_ntquota_list(SMB_NTQUOTA_LIST **qt_list);
|
||||
bool parse_user_quota_record(const uint8_t *rdata,
|
||||
unsigned int rdata_count,
|
||||
unsigned int *offset,
|
||||
SMB_NTQUOTA_STRUCT *pqt);
|
||||
NTSTATUS cli_get_user_quota(struct cli_state *cli, int quota_fnum,
|
||||
SMB_NTQUOTA_STRUCT *pqt);
|
||||
NTSTATUS cli_set_user_quota(struct cli_state *cli, int quota_fnum,
|
||||
|
Loading…
x
Reference in New Issue
Block a user