42#include "MagickCore/studio.h"
43#include "MagickCore/client.h"
44#include "MagickCore/log.h"
45#include "MagickCore/string_.h"
65MagickExport
const char *GetClientName(
void)
67 return(SetClientName((
const char *) NULL));
88MagickExport
const char *GetClientPath(
void)
90 return(SetClientPath((
const char *) NULL));
115MagickExport
const char *SetClientName(
const char *name)
118 client_name[256] =
"";
120 if ((name != (
char *) NULL) && (*name !=
'\0'))
122 (void) CopyMagickString(client_name,name,
sizeof(client_name));
123 (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),
"%s",client_name);
125 return(*client_name ==
'\0' ?
"Magick" : client_name);
152MagickExport
const char *SetClientPath(
const char *path)
155 client_path[MagickPathExtent] =
"";
157 if ((path != (
char *) NULL) && (*path !=
'\0'))
159 (void) CopyMagickString(client_path,path,MagickPathExtent);
160 (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),
"%s",path);