mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
Removed stale files from gtk-tool
This commit is contained in:
parent
b50348c53a
commit
9365ceab85
5 changed files with 0 additions and 234 deletions
|
|
@ -1,49 +0,0 @@
|
|||
#include "LdapEntry.h"
|
||||
|
||||
LdapEntry* LdapEntry::get_entries(LDAP *ld, char *base_dn, int level,char *filter) {
|
||||
printf("get_entries(%s)\n", base_dn);
|
||||
LDAPMessage **result, *entry;
|
||||
Entry *thing;
|
||||
char *pele;
|
||||
int res;
|
||||
res = ldap_search(ld, base_dn, level, filter, NULL, 0);
|
||||
res = ldap_result(ld, res, 1, NULL, result);
|
||||
printf("%s\n", ldap_err2string(ldap_result2error(ld, *result, 1)));
|
||||
int num_entries = ldap_count_entries(ld, *result);
|
||||
printf("%i results\n", num_entries);
|
||||
int i=0;
|
||||
entry = ldap_first_entry(ld, *result);
|
||||
thing->dn = ldap_get_dn(ld, entry);
|
||||
pele = ldap_get_dn(ld, entry);
|
||||
printf("%s\n", thing->dn);
|
||||
while (entry) {
|
||||
printf("Child %i\n", i);
|
||||
thing->child[i] = get_entries(ld, pele, LDAP_SCOPE_ONELEVEL, filter);
|
||||
i++;
|
||||
entry = ldap_next_entry(ld, entry);
|
||||
}
|
||||
return thing;
|
||||
}
|
||||
|
||||
Gtk_Tree *LdapEntry::make_tree(Entry *thing) {
|
||||
Gtk_Tree *tree, **subtree;
|
||||
Gtk_TreeItem *treeitem;
|
||||
gchar *c;
|
||||
tree = new Gtk_Tree();
|
||||
tree->set_selection_mode(GTK_SELECTION_BROWSE);
|
||||
tree->set_view_mode(GTK_TREE_VIEW_ITEM);
|
||||
tree->set_view_lines(false);
|
||||
c = g_strdup_printf("%s", thing->dn);
|
||||
printf("%s\n", c);
|
||||
treeitem = new Gtk_TreeItem(c);
|
||||
tree->append(treeitem);
|
||||
treeitem->show();
|
||||
int i=0;
|
||||
while (thing->child[i]) {
|
||||
subtree[i] = make_tree(thing->child[i]);
|
||||
treeitem->set_subtree(subtree[i]);
|
||||
i++;
|
||||
}
|
||||
tree->show();
|
||||
return tree;
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#ifdef MY_LDAP_ENTRY_H
|
||||
#define MY_LDAP_ENTRY_H
|
||||
#include "common.h"
|
||||
#include "gtk.h"
|
||||
#include <lber.h>
|
||||
#include <ldap.h>
|
||||
|
||||
class LdapEntry {
|
||||
public:
|
||||
char *dn;
|
||||
LdapEntry **children;
|
||||
LdapEntry* get_entries(LDAP *ld, char *base_dn, int level, char *filter);
|
||||
Gtk_Tree* make_tree(LdapEntry *thing);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
/* XPM */
|
||||
static char *magick[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"19 20 10 1",
|
||||
" c Gray0",
|
||||
". c Gray40",
|
||||
"X c Magenta",
|
||||
"o c #999999990000",
|
||||
"O c #cccccccc6666",
|
||||
"+ c #ffffcccc9999",
|
||||
"@ c #ffffffff9999",
|
||||
"# c #ffffffffcccc",
|
||||
"$ c Gray100",
|
||||
"% c None",
|
||||
/* pixels */
|
||||
"%%%%%%%%%%%%%%%%%%%",
|
||||
"%%ooooo %%%%%%%%%%%",
|
||||
"%o$$##@O %%%%%%%%%%",
|
||||
"oOOOOOOOoooooo%%%%%",
|
||||
"o###########@O %%%%",
|
||||
"o#@@@@@@@@@@+O %%%%",
|
||||
"o#@@@@@@@+@+@@ %%%%",
|
||||
"o#@@@@@@@@+@+O %%%%",
|
||||
"o#@@@@@+@+@+@O %%%%",
|
||||
"o#@@@@@@+@+@+O %%%%",
|
||||
"o#@@@+@+@+@++@ %%%%",
|
||||
"o#+@+@+@+@+++O %%%%",
|
||||
"oOOOOOOOOOOOOO %%%%",
|
||||
"% %%%%",
|
||||
"%%%%%%%%%%%%%%%%%%%",
|
||||
"%%%%%%%%%%%%%%%%%%%",
|
||||
"%%%%%%%%%%%%%%%%%%%",
|
||||
"%%%%%%%%%%%%%%%%%%%",
|
||||
"%%%%%%%%%%%%%%%%%%%",
|
||||
"%%%%%%%%%%%%%%%%%%%"
|
||||
};
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
/* XPM */
|
||||
static char *magick[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"16 20 33 1",
|
||||
" c Gray0",
|
||||
". c Gray19",
|
||||
"X c #303030306060",
|
||||
"o c #505050505050",
|
||||
"O c #5f5f5f5f5f5f",
|
||||
"+ c Gray44",
|
||||
"@ c #000000008080",
|
||||
"# c #000030309f9f",
|
||||
"$ c #30303030cfcf",
|
||||
"% c #000060609f9f",
|
||||
"& c #00006060cfcf",
|
||||
"* c #30306060cfcf",
|
||||
"= c #30306060ffff",
|
||||
"- c #0000cfcfffff",
|
||||
"; c #60609f9f9f9f",
|
||||
": c #6060ffffffff",
|
||||
"> c Magenta",
|
||||
", c #808080800000",
|
||||
"< c #9f9f9f9f6060",
|
||||
"1 c #cfcf9f9f6060",
|
||||
"2 c #808080808080",
|
||||
"3 c #9f9f9f9f9f9f",
|
||||
"4 c #9f9fcfcfcfcf",
|
||||
"5 c #ffffcfcf9f9f",
|
||||
"6 c #ffffffff9f9f",
|
||||
"7 c #c0c0c0c0c0c0",
|
||||
"8 c Gray81",
|
||||
"9 c #e0e0e0e0d0d0",
|
||||
"0 c #efefefefefef",
|
||||
"q c Gray94",
|
||||
"w c ivory",
|
||||
"e c Gray100",
|
||||
"r c None",
|
||||
/* pixels */
|
||||
"rrr+222222222rrr",
|
||||
"rrr+eeeeeeee3orr",
|
||||
"rrr+ewwwwwww3wor",
|
||||
"rrr+eww&&wwwo...",
|
||||
"rrr@&&&&w=qw83+o",
|
||||
"rr@;4$$:&qwq083o",
|
||||
"r@<6&ww$-&q0098o",
|
||||
"r+5=&&&&&&00998o",
|
||||
"+1*=&wwqw0q9098o",
|
||||
"O<#==77$=%00998o",
|
||||
",$X$====%009098o",
|
||||
"r$r %%%0090998o",
|
||||
"rr$+eqwq0909998o",
|
||||
"rrr+00099099998o",
|
||||
"rrr+88888888888o",
|
||||
"rrr+oooooooooooo",
|
||||
"rrrrrrrrrrrrrrrr",
|
||||
"rrrrrrrrrrrrrrrr",
|
||||
"rrrrrrrrrrrrrrrr",
|
||||
"rrrrrrrrrrrrrrrr"
|
||||
};
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
/* XPM */
|
||||
static char *magick[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"19 20 49 1",
|
||||
" c #313131310000",
|
||||
". c #313131313131",
|
||||
"X c #000000006363",
|
||||
"o c #000031316363",
|
||||
"O c #313131316363",
|
||||
"+ c #000042424242",
|
||||
"@ c #00007b7b7b7b",
|
||||
"# c #313163636363",
|
||||
"$ c #636363633131",
|
||||
"% c #5a5a5a5a5a5a",
|
||||
"& c #7b7b7b7b7b7b",
|
||||
"* c #31313131ffff",
|
||||
"= c #000042428484",
|
||||
"- c #313163639c9c",
|
||||
"; c #31316363cece",
|
||||
": c #636363639c9c",
|
||||
"> c #00009c9c3131",
|
||||
", c #31319c9c3131",
|
||||
"< c #63639c9c3131",
|
||||
"1 c #63639c9c6363",
|
||||
"2 c #31319c9ccece",
|
||||
"3 c #31319c9cffff",
|
||||
"4 c #0000ceceffff",
|
||||
"5 c Cyan",
|
||||
"6 c #63639c9c9c9c",
|
||||
"7 c #63639c9ccece",
|
||||
"8 c #63639c9cffff",
|
||||
"9 c #6363ceceffff",
|
||||
"0 c #9c9c00000000",
|
||||
"q c #cece00000000",
|
||||
"w c Magenta",
|
||||
"e c #848484844242",
|
||||
"r c #9c9c9c9c6363",
|
||||
"t c #848484848484",
|
||||
"y c Gray58",
|
||||
"u c Gray71",
|
||||
"i c #84848484ffff",
|
||||
"p c #9c9ccececece",
|
||||
"a c #9c9cceceffff",
|
||||
"s c #8484ffffffff",
|
||||
"d c #a5a5cecef7f7",
|
||||
"f c #ffff9c9c9c9c",
|
||||
"g c #cececece9c9c",
|
||||
"h c #c6c6c6c6c6c6",
|
||||
"j c #c6c6dedec6c6",
|
||||
"k c #cecececeffff",
|
||||
"l c #ceceffffcece",
|
||||
"z c Gray100",
|
||||
"x c None",
|
||||
/* pixels */
|
||||
"xxxxx&t&&txxxxxxxxx",
|
||||
"xxxhujds9u&&xxxxxxx",
|
||||
"xxhzzdadd1<1 xxxxxx",
|
||||
"x7zhjdag&1e,$ xxxxx",
|
||||
"x7ddkuj61e&$, xxxxx",
|
||||
"7asapryt&.@>., xxxx",
|
||||
"7983py&z5l.., xxxx",
|
||||
"2i226&z5l54.%. xxxx",
|
||||
"272;:t5l545.. xxxx",
|
||||
"22;-$&h5454. . xxxx",
|
||||
"---1.,&454.&.. xxxx",
|
||||
"-*##$#+...&zq0xxxxx",
|
||||
"xXO++. + . qfq0xxxx",
|
||||
"xxXoOo+.. . qfq0xxx",
|
||||
"xxxXX+=++ ..xqq0xxx",
|
||||
"xxxxx.....xxxx..xxx",
|
||||
"xxxxxxxxxxxxxxxxxxx",
|
||||
"xxxxxxxxxxxxxxxxxxx",
|
||||
"xxxxxxxxxxxxxxxxxxx",
|
||||
"xxxxxxxxxxxxxxxxxxx"
|
||||
};
|
||||
Loading…
Reference in a new issue