]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: add win32/wstring.h
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 16 Nov 2022 08:50:14 +0000 (10:50 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 22 Mar 2023 14:34:52 +0000 (14:34 +0000)
commita47caa156a4e667d6b9ff7236cc9148ba37ea772
tree399dba6f19a653459c1826e813923ec8a6e51285
parent504ff07cdad83fe4d3447ad94fe39261eb349ce2
common: add win32/wstring.h

Windows APIs heavily use wchar. ceph-dokan and rbd-wnbd
have some duplicated helpers that convert wstrings to/from
utf8 strings.

To avoid duplication and allow reusing those helpers, we're moving
them to common/win32/wstring.h.

We're using the "win32" subfolder because it's unlikely that this
will ever be used on other platforms.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/CMakeLists.txt
src/common/win32/wstring.cc [new file with mode: 0644]
src/common/win32/wstring.h [new file with mode: 0644]
src/dokan/ceph_dokan.cc
src/dokan/options.cc
src/dokan/utils.cc
src/dokan/utils.h
src/tools/rbd_wnbd/rbd_wnbd.cc