add doxygen comments for osiProcess.h

This commit is contained in:
Elaine Chandler
2022-05-10 11:52:38 -05:00
committed by Andrew Johnson
parent 30d4a583d0
commit 5b64eaac73

View File

@@ -11,11 +11,13 @@
#ifndef INC_osiProcess_H
#define INC_osiProcess_H
/**
* \file osiProcess.h
*
* \brief Operating System Independent Interface to Process Environment
*/
/*
* Operating System Independent Interface to Process Environment
*
* Author: Jeff Hill
*
*/
#include "libComAPI.h"
@@ -23,21 +25,42 @@
extern "C" {
#endif
/** Return code for osiGetUserName() */
typedef enum osiGetUserNameReturn {
osiGetUserNameFail,
osiGetUserNameSuccess} osiGetUserNameReturn;
osiGetUserNameFail, /**< Failed*/
osiGetUserNameSuccess /**< Succeeded*/
} osiGetUserNameReturn;
/** \brief get user name
*
* Get the name of the user associated with the current process
* and copy the name into the provided buffer
*
* \param pBuf buffer where user name is copied into
* \param bufSize size of input buffer.
*
* \return return failed if unable to get user name or user name is too large
* to fit in buffer. Otherwise return success
*/
LIBCOM_API osiGetUserNameReturn epicsStdCall osiGetUserName (char *pBuf, unsigned bufSize);
/*
* Spawn detached process with named executable, but return
* osiSpawnDetachedProcessNoSupport if the local OS does not
* support heavy weight processes.
*/
/** Return code for osiSpawnDetachedProcess() */
typedef enum osiSpawnDetachedProcessReturn {
osiSpawnDetachedProcessFail,
osiSpawnDetachedProcessSuccess,
osiSpawnDetachedProcessNoSupport} osiSpawnDetachedProcessReturn;
osiSpawnDetachedProcessFail, /**< Failed*/
osiSpawnDetachedProcessSuccess, /**< Succeeded */
osiSpawnDetachedProcessNoSupport /**< Not supported by OS*/
} osiSpawnDetachedProcessReturn;
/** \brief Spawn detached process
*
* Spawn detached process with named executable.
*
* \param pProcessName process name to be displayed. Not used in all OSs
* \param pBaseExecutableName path to executable
*
* \return return code indicating success or failure
*/
LIBCOM_API osiSpawnDetachedProcessReturn epicsStdCall osiSpawnDetachedProcess
(const char *pProcessName, const char *pBaseExecutableName);