1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

pylibsmb: Add smb2 create tag strings

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2022-08-31 11:37:54 +02:00 committed by Ralph Boehme
parent 51f99b7f19
commit 68ba30215d

View File

@ -2102,5 +2102,23 @@ MODULE_INIT_FUNC(libsmb_samba_cwrapper)
ADD_FLAGS(NOTIFY_ACTION_REMOVED_STREAM);
ADD_FLAGS(NOTIFY_ACTION_MODIFIED_STREAM);
#define ADD_STRING(val) PyModule_AddObject(m, #val, PyBytes_FromString(val))
ADD_STRING(SMB2_CREATE_TAG_EXTA);
ADD_STRING(SMB2_CREATE_TAG_MXAC);
ADD_STRING(SMB2_CREATE_TAG_SECD);
ADD_STRING(SMB2_CREATE_TAG_DHNQ);
ADD_STRING(SMB2_CREATE_TAG_DHNC);
ADD_STRING(SMB2_CREATE_TAG_ALSI);
ADD_STRING(SMB2_CREATE_TAG_TWRP);
ADD_STRING(SMB2_CREATE_TAG_QFID);
ADD_STRING(SMB2_CREATE_TAG_RQLS);
ADD_STRING(SMB2_CREATE_TAG_DH2Q);
ADD_STRING(SMB2_CREATE_TAG_DH2C);
ADD_STRING(SMB2_CREATE_TAG_AAPL);
ADD_STRING(SMB2_CREATE_TAG_APP_INSTANCE_ID);
ADD_STRING(SVHDX_OPEN_DEVICE_CONTEXT);
ADD_STRING(SMB2_CREATE_TAG_POSIX);
return m;
}