diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-07-24 19:03:11 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-07-24 19:03:11 +0000 |
commit | e6608b5279dcb258fa97d7719e854b72de84b9b9 (patch) | |
tree | f0847f68bd3976778cd71c5ba74fcf2717b82999 /source3/include | |
parent | 48a378f0674de0bdd3ee7d2147862179d55e4e56 (diff) | |
download | samba-e6608b5279dcb258fa97d7719e854b72de84b9b9.tar.gz samba-e6608b5279dcb258fa97d7719e854b72de84b9b9.tar.bz2 samba-e6608b5279dcb258fa97d7719e854b72de84b9b9.zip |
Converted the browser database to a ubi_dLinkList. This should reduce code
size, etc. Also did a bit of work to add comments.
Chris -)-----
(This used to be commit d8b0a2104c05df957f0eb49c21388ec5a4858d98)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/nameserv.h | 19 | ||||
-rw-r--r-- | source3/include/proto.h | 12 |
2 files changed, 14 insertions, 17 deletions
diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h index 0ba7acda18..80d9667d1c 100644 --- a/source3/include/nameserv.h +++ b/source3/include/nameserv.h @@ -189,11 +189,10 @@ struct nmb_data time_t refresh_time; /* The time the record should be refreshed. */ }; -/* This is the structure used for the local netbios name list. */ +/* This structure represents an entry in a local netbios name list. */ struct name_record { ubi_trNode node[1]; - struct subnet_record *subnet; struct nmb_name name; /* The netbios name. */ struct nmb_data data; /* The netbios data. */ @@ -201,16 +200,14 @@ struct name_record /* Browser cache for synchronising browse lists. */ struct browse_cache_record -{ - struct browse_cache_record *next; - struct browse_cache_record *prev; - - pstring lmb_name; - pstring work_group; + { + ubi_dlNode node[1]; + pstring lmb_name; + pstring work_group; struct in_addr ip; - time_t sync_time; - time_t death_time; /* The time the record must be removed. */ -}; + time_t sync_time; + time_t death_time; /* The time the record must be removed. */ + }; /* This is used to hold the list of servers in my domain, and is contained within lists of domains. */ diff --git a/source3/include/proto.h b/source3/include/proto.h index 5819d1aadc..8adfb70d38 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1270,13 +1270,13 @@ void set_workgroup_local_master_browser_name( struct work_record *work, char *ne /*The following definitions come from nmbd_browserdb.c */ -void remove_lmb_browser_entry(struct browse_cache_record *browc); -void update_browser_death_time(struct browse_cache_record *browc); -struct browse_cache_record *create_browser_in_lmb_cache(char *work_name, char *browser_name, - struct in_addr ip); +void update_browser_death_time( struct browse_cache_record *browc ); +struct browse_cache_record *create_browser_in_lmb_cache( char *work_name, + char *browser_name, + struct in_addr ip ); struct browse_cache_record *find_browser_in_lmb_cache( char *browser_name ); -void expire_lmb_browsers(time_t t); -void remove_workgroup_lmb_browsers(char *work_group); +void expire_lmb_browsers( time_t t ); +void remove_workgroup_lmb_browsers( char *work_group ); /*The following definitions come from nmbd_browsesync.c */ |