Skip to content

Commit

Permalink
Added all_SetPathInfo and all_QueryPathInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
prokushev committed Apr 20, 2024
1 parent 0270d71 commit fd61e4c
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 3 deletions.
26 changes: 26 additions & 0 deletions OS2/Shared/all_querypathinfo.c
@@ -0,0 +1,26 @@
/*!
@file all_querypathinfo.c
@brief utility functions for query path info
shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#include <all_shared.h> /* shared functions and defines */

APIRET all_QueryPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfo,
ULONG cbInfoBuf)
{
#ifdef __386__
return DosQueryPathInfo(pszPathName, ulInfoLevel, pInfo, cbInfoBuf);
#else
return DosQPathInfo(pszPathName, ulInfoLevel, (PBYTE)pInfo, cbInfoBuf, 0);
#endif
}
27 changes: 27 additions & 0 deletions OS2/Shared/all_setpathinfo.c
@@ -0,0 +1,27 @@
/*!
@file all_setpathinfo.c
@brief utility functions for set path info
shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#include <all_shared.h> /* shared functions and defines */

APIRET all_SetPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfoBuf,
ULONG cbInfoBuf,
ULONG flOptions)
{
#ifdef __386__
return DosSetPathInfo(pszPathName, ulInfoLevel, pInfoBuf, cbInfoBuf, flOptions);
#else
return DosSetPathInfo(pszPathName, ulInfoLevel, (PBYTE)pInfoBuf, cbInfoBuf, flOptions, 0);
#endif
}
1 change: 0 additions & 1 deletion OS2/Shared/libs16/_wcc.cmd
@@ -1,5 +1,4 @@
@echo off
set verbose=yes
set root=.
:loop
if exist "%root%\tools\mk\all.mk" goto found
Expand Down
2 changes: 1 addition & 1 deletion OS2/Shared/libs16/makefile
Expand Up @@ -6,7 +6,7 @@ PROJ = all_shared16
TRGT = $(PROJ).lib
srcfiles = $(p)all_messages$(e) $(p)all_querycurrentdisk$(e) $(p)all_queryfsname$(e) &
$(p)all_dlist$(e) $(p)all_pathmanipulation$(e) $(p)all_performrecursiveaction$(e) &
$(p)all_debug$(e)
$(p)all_debug$(e) $(p)all_setpathinfo$(e) $(p)all_querypathinfo$(e)
UNI2H = 0
NOLIBS = 1
ADD_COPT =
Expand Down
2 changes: 1 addition & 1 deletion OS2/Shared/makefile
Expand Up @@ -7,7 +7,7 @@ PROJ = all_shared
TRGT = $(PROJ).lib
srcfiles = $(p)all_messages$(e) $(p)all_querycurrentdisk$(e) $(p)all_queryfsname$(e) &
$(p)all_dlist$(e) $(p)all_pathmanipulation$(e) $(p)all_performrecursiveaction$(e) &
$(p)all_debug$(e)
$(p)all_debug$(e) $(p)all_setpathinfo$(e) $(p)all_querypathinfo$(e)

UNI2H = 1
ADD_COPT =
Expand Down
21 changes: 21 additions & 0 deletions include/os3/all_querypathinfo.h
@@ -0,0 +1,21 @@
/*!
@file all_querypathinfo.h
@brief all_QueryPathInfo utility function header, shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#ifndef _ALL_QUERYPATHINFO_H_
#define _ALL_QUERYPATHINFO_H_

APIRET all_QueryPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfo,
ULONG cbInfoBuf);

#endif /* _ALL_QUERYPATHINFO_H_ */
22 changes: 22 additions & 0 deletions include/os3/all_setpathinfo.h
@@ -0,0 +1,22 @@
/*!
@file all_setpathinfo.h
@brief all_SetPathInfo utility function header, shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#ifndef _ALL_SETPATHINFO_H_
#define _ALL_SETPATHINFO_H_

APIRET all_SetPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfoBuf,
ULONG cbInfoBuf,
ULONG flOptions);

#endif /* _ALL_SETPATHINFO_H_ */
2 changes: 2 additions & 0 deletions include/os3/all_shared.h
Expand Up @@ -45,5 +45,7 @@
#include "all_querycurrentdisk.h"
#include "all_queryfsname.h"
#include "all_messages.h"
#include "all_setpathinfo.h"
#include "all_querypathinfo.h"

#endif /* _ALL_SHARED_H_ */

0 comments on commit fd61e4c

Please sign in to comment.