forked from neutrinolabs/xrdp
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed2b08a
commit f187429
Showing
5 changed files
with
213 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* xrdp: A Remote Desktop Protocol server. | ||
* | ||
* Copyright (C) Jay Sorg 2004-2024 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* | ||
* @file login_info.c | ||
* @brief Declare functionality associated with sesman restart support | ||
* @author Matt Burt | ||
* | ||
*/ | ||
|
||
#if defined(HAVE_CONFIG_H) | ||
#include <config_ac.h> | ||
#endif | ||
|
||
#include "sesexec_restart.h" | ||
|
||
/******************************************************************************/ | ||
int | ||
sesexec_restart_enable(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
/******************************************************************************/ | ||
|
||
int | ||
sesexec_restart_disable(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
/******************************************************************************/ | ||
|
||
int | ||
sesexec_restart_get_wait_objs(intptr_t robjs[], int *robjs_count, | ||
int max_count) | ||
{ | ||
return 0; | ||
} | ||
|
||
/******************************************************************************/ | ||
|
||
int | ||
sesexec_restart_check_wait_objs(void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** | ||
* xrdp: A Remote Desktop Protocol server. | ||
* | ||
* Copyright (C) Jay Sorg 2004-2024 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* | ||
* @file sesexec_restart.h | ||
* @brief Declare functionality associated with sesman restart support | ||
* for sesexec | ||
* | ||
* @author Matt Burt | ||
* | ||
*/ | ||
|
||
#ifndef SESEXEC_RESTART_H | ||
#define SESEXEC_RESTART_H | ||
|
||
#include <stdint.h> | ||
|
||
/** | ||
* Start the listening object used when sesman restarts | ||
* | ||
* @return != 0 for error | ||
*/ | ||
int | ||
sesexec_restart_enable(void); | ||
|
||
/** | ||
* Stop the listening object used when sesman restarts, and deallocate all | ||
* module resources. | ||
* | ||
* @return != 0 for error | ||
*/ | ||
int | ||
sesexec_restart_disable(void); | ||
|
||
/** | ||
* Add any file descriptors in use by the module to an array | ||
* | ||
* @param robjs Array to add fds to | ||
* @param[in,out] robjs_count Index where elements are to be added | ||
* @param max_count Max value of robjs_count | ||
* @return != 0 for error | ||
* | ||
* This function can be called before sesexec_restart_enable(), | ||
* in which case it does nothing. | ||
*/ | ||
int | ||
sesexec_restart_get_wait_objs(intptr_t robjs[], int *robjs_count, | ||
int max_count); | ||
|
||
|
||
/** | ||
* Check any file descriptors in use by the module for actionable events | ||
* @return != 0 for error | ||
* | ||
* This function can be called before sesexec_restart_enable(), | ||
* in which case it does nothing. | ||
*/ | ||
int | ||
sesexec_restart_check_wait_objs(void); | ||
|
||
#endif // SESEXEC_RESTART_H |