libzypp
15.21.4
|
Helper for commit plugin execution. More...
Public Member Functions | |
CommitPlugins () | |
Default ctor: Empty plugin list. More... | |
~CommitPlugins () | |
Dtor: Send PLUGINEND message and close plugins. More... | |
bool | empty () const |
Whether no plugins are waiting. More... | |
void | send (const PluginFrame &frame_r) |
Send PluginFrame to all open plugins. More... | |
void | load (const Pathname &path_r) |
Find and launch plugins sending PLUGINSTART message. More... | |
Private Member Functions | |
PluginFrame | doSend (PluginScript &script_r, const PluginFrame &frame_r) |
Send PluginFrame and expect valid answer (ACK|_ENOMETHOD). More... | |
void | doLoad (const PathInfo &pi_r) |
Launch a plugin sending PLUGINSTART message. More... | |
Private Attributes | |
std::list< PluginScript > | _scripts |
Helper for commit plugin execution.
Definition at line 237 of file TargetImpl.cc.
|
inline |
Default ctor: Empty plugin list.
Definition at line 241 of file TargetImpl.cc.
|
inline |
Dtor: Send PLUGINEND message and close plugins.
Definition at line 245 of file TargetImpl.cc.
|
inline |
Whether no plugins are waiting.
Definition at line 253 of file TargetImpl.cc.
|
inline |
Send PluginFrame to all open plugins.
Failed plugins are removed from the execution list.
Definition at line 260 of file TargetImpl.cc.
|
inline |
Find and launch plugins sending PLUGINSTART message.
If path_r is a directory all executable files whithin are expected to be plugins. Otherwise path_r must point to an executable plugin.
Definition at line 280 of file TargetImpl.cc.
|
inlineprivate |
Send PluginFrame and expect valid answer (ACK|_ENOMETHOD).
Upon invalid answer or error, close the plugin. and remove it from the execution list.
Definition at line 319 of file TargetImpl.cc.
|
inlineprivate |
Launch a plugin sending PLUGINSTART message.
Definition at line 341 of file TargetImpl.cc.
|
private |
Definition at line 363 of file TargetImpl.cc.