/usr/include/ACEXML/apps/svcconf/Svcconf_Handler.inl is in libacexml-dev 6.3.3+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | // -*- C++ -*-
ACE_INLINE
ACE_Parsed_Info::ACE_Parsed_Info ()
: name_ (0),
service_type_ (ACE_Service_Type::INVALID_TYPE),
active_ (1),
path_ (0),
init_func_ (0),
init_params_ (0)
{
}
ACE_INLINE
ACE_Parsed_Info::~ACE_Parsed_Info ()
{
delete[] this->name_;
delete[] this->path_;
delete[] this->init_func_;
delete[] this->init_params_;
}
ACE_INLINE int
ACE_Parsed_Info::name (const ACEXML_Char *n)
{
if (this->name_ == 0)
{
this->name_ = ACE::strnew (n);
return 0;
}
return -1;
}
ACE_INLINE const ACEXML_Char *
ACE_Parsed_Info::name (void)
{
return this->name_;
}
ACE_INLINE int
ACE_Parsed_Info::service_type (int type)
{
if (this->service_type_ == -1)
{
this->service_type_ = type;
return 0;
}
return -1;
}
ACE_INLINE int
ACE_Parsed_Info::service_type (void)
{
return this->service_type_;
}
ACE_INLINE int
ACE_Parsed_Info::active (int a)
{
this->active_ = a;
return 0;
}
ACE_INLINE int
ACE_Parsed_Info::active (void)
{
return this->active_;
}
ACE_INLINE int
ACE_Parsed_Info::path (const ACEXML_Char *p)
{
if (this->path_ == 0)
{
this->path_ = ACE::strnew (p);
return 0;
}
return -1;
}
ACE_INLINE const ACEXML_Char *
ACE_Parsed_Info::path (void)
{
return this->path_;
}
ACE_INLINE int
ACE_Parsed_Info::init_func (const ACEXML_Char *n)
{
if (this->init_func_ == 0)
{
this->init_func_ = ACE::strnew (n);
return 0;
}
return -1;
}
ACE_INLINE const ACEXML_Char *
ACE_Parsed_Info::init_func (void)
{
return this->init_func_;
}
ACE_INLINE int
ACE_Parsed_Info::init_params (const ACEXML_Char *n)
{
if (this->init_params_ == 0)
{
this->init_params_ = ACE::strnew (n);
return 0;
}
return -1;
}
ACE_INLINE const ACEXML_Char *
ACE_Parsed_Info::init_params (void)
{
return this->init_params_;
}
ACE_INLINE void
ACE_Parsed_Info::reset (void)
{
delete[] this->name_;
this->name_ = 0;
this->service_type_ = -1;
delete[] this->path_;
this->path_ = 0;
delete[] this->init_func_;
this->init_func_ = 0;
delete[] this->init_params_;
this->init_params_ = 0;
}
|