mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-22 23:11:15 +00:00
o handle switchToKnownInstance parameter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18139 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
06627699df
commit
9e549a4c0b
1 changed files with 19 additions and 0 deletions
|
@ -435,6 +435,7 @@ GSWConfig_PropListInstanceToInstance(GSWAppInstance *p_pInstance,
|
|||
p_pInstance->iPort=atoi(pszPort);
|
||||
};
|
||||
};
|
||||
|
||||
GSWLog(GSW_INFO,p_pLogServerData,
|
||||
"Config: App=%p %s instance %d host %s port %d Valid:%s timeNextRetryTime %d",
|
||||
p_pApp,
|
||||
|
@ -459,6 +460,7 @@ GSWConfig_PropListApplicationToApplication(GSWApp *p_pApp,
|
|||
BOOL fOk=TRUE;
|
||||
char pszParents[4096]="";
|
||||
proplist_t pValueCanDump=NULL;
|
||||
proplist_t pValueSwitchToKnownInstance=NULL;
|
||||
proplist_t pValueAdaptorTemplatesPath=NULL;
|
||||
|
||||
if (p_pApp->pszName)
|
||||
|
@ -484,6 +486,22 @@ GSWConfig_PropListApplicationToApplication(GSWApp *p_pApp,
|
|||
p_pApp->fCanDump=(strcasecmp(pszCanDump,"YES")==0);
|
||||
};
|
||||
|
||||
// SwitchToKnownInstance
|
||||
pValueSwitchToKnownInstance=GSWPropList_GetDictionaryEntry(p_propListApp,
|
||||
"switchToKnownInstance",
|
||||
pszParents,
|
||||
FALSE,//No Error If Not Exists
|
||||
GSWPropList_TestString,
|
||||
p_pLogServerData);
|
||||
|
||||
p_pApp->fSwitchToKnownInstance=YES;
|
||||
if (pValueSwitchToKnownInstance)
|
||||
{
|
||||
CONST char *pszSwitchToKnownInstance=PLGetString(pValueSwitchToKnownInstance);//Do Not Free It
|
||||
p_pApp->fSwitchToKnownInstance=!(strcasecmp(pszSwitchToKnownInstance,"NO")==0);
|
||||
};
|
||||
|
||||
|
||||
//adaptorTemplates
|
||||
pValueAdaptorTemplatesPath =
|
||||
GSWPropList_GetDictionaryEntry(p_propListApp,
|
||||
|
@ -825,6 +843,7 @@ GSWConfig_LoadConfiguration(void *p_pLogServerData)
|
|||
// );
|
||||
// };
|
||||
// MyApp3 = {
|
||||
// switchToKnownInstance = NO;
|
||||
// canDump = YES;
|
||||
// instances = (
|
||||
// {
|
||||
|
|
Loading…
Reference in a new issue