const gchar * uri_backend_get_save_protocols (void) { if (! supported_protocols) supported_protocols = get_protocols (); return supported_protocols; }
static void cmd_plugins(irc_t *irc, char **cmd) { GList *prpls; GString *gstr; #ifdef WITH_PLUGINS GList *l; struct plugin_info *info; for (l = get_plugins(); l; l = l->next) { info = l->data; irc_rootmsg(irc, "%s:", info->name); irc_rootmsg(irc, " Version: %s", info->version); if (info->description) { irc_rootmsg(irc, " Description: %s", info->description); } if (info->author) { irc_rootmsg(irc, " Author: %s", info->author); } if (info->url) { irc_rootmsg(irc, " URL: %s", info->url); } irc_rootmsg(irc, ""); } #endif gstr = g_string_new(NULL); prpls = get_protocols(); if (prpls) { prplstr(prpls, gstr); irc_rootmsg(irc, "Enabled Protocols: %s", gstr->str); g_string_truncate(gstr, 0); } prpls = get_protocols_disabled(); if (prpls) { prplstr(prpls, gstr); irc_rootmsg(irc, "Disabled Protocols: %s", gstr->str); } g_string_free(gstr, TRUE); }
static void handle_property(const XPropertyEvent *ev) { WClientWin *cwin; WClient *client; WScreen *scr; cwin=find_clientwin(ev->window); if(cwin==NULL) return; switch(ev->atom){ case XA_WM_NORMAL_HINTS: get_clientwin_size_hints(cwin); /*refit(cwin);*/ return; case XA_WM_NAME: /*if(cwin->name!=NULL) XFree((void*)cwin->name); cwin->name=get_string_property(cwin->win, XA_WM_NAME, NULL);*/ set_clientwin_name(cwin, get_string_property(cwin->win, XA_WM_NAME, NULL)); break; /*case XA_WM_ICON_NAME: if(cwin->icon_name!=NULL) XFree((void*)cwin->icon_name); cwin->icon_name=get_string_property(cwin->win, XA_WM_ICON_NAME, NULL); break;*/ case XA_WM_TRANSIENT_FOR: /*warn("Changes in WM_TRANSIENT_FOR property are unsupported.");*/ /*unmap_clientwin(cwin); manage_clientwin(ev->window, 0);*/ default: if(ev->atom==wglobal.atom_wm_protocols) get_protocols(cwin); return; } /*client=FIND_PARENT(cwin, WClient); if(client!=NULL) client_update_label(client);*/ }
void Client::set_client_protocols_policies (int debug) { CORBA::PolicyList policies; int result = get_protocols ("client", protocols_file, this->rt_orb_.in (), policies, debug); if (result != 0) { ACE_ERROR ((LM_ERROR, "Error in parsing protocols data file: %s\n", protocols_file)); return; } this->policy_manager_->set_policy_overrides (policies, CORBA::ADD_OVERRIDE); }
int getprotobyname(char *name) { return_nc (getxxbyname(get_protocols(),name)); }