diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-08 01:16:42 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-08 01:16:42 +0000 |
commit | 6c7adeab0f92844ecefbcb923d0d4763d4c3eaa5 (patch) | |
tree | d56d855e478075c280366855c0b8e026d985cc0b /source/tdb | |
parent | 341d07c516865bdd9be99f98cd0754d12b25f9c0 (diff) | |
download | samba-6c7adeab0f92844ecefbcb923d0d4763d4c3eaa5.tar.gz samba-6c7adeab0f92844ecefbcb923d0d4763d4c3eaa5.tar.xz samba-6c7adeab0f92844ecefbcb923d0d4763d4c3eaa5.zip |
Moved tdb functions that access parse structs into parse_prs.c
to prevent builkd breaking.
Jeremy.
Diffstat (limited to 'source/tdb')
-rw-r--r-- | source/tdb/tdbutil.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source/tdb/tdbutil.c b/source/tdb/tdbutil.c index d2eb6b5ec79..3e973337b9c 100644 --- a/source/tdb/tdbutil.c +++ b/source/tdb/tdbutil.c @@ -250,33 +250,3 @@ int tdb_unpack(char *buf, int bufsize, char *fmt, ...) no_space: return -1; } - - -/* useful function to store a structure in rpc wire format */ -int tdb_prs_store(TDB_CONTEXT *tdb, char *keystr, prs_struct *ps) -{ - TDB_DATA kbuf, dbuf; - kbuf.dptr = keystr; - kbuf.dsize = strlen(keystr)+1; - dbuf.dptr = prs_data_p(ps); - dbuf.dsize = prs_offset(ps); - - return tdb_store(tdb, kbuf, dbuf, TDB_REPLACE); -} - -/* useful function to fetch a structure into rpc wire format */ -int tdb_prs_fetch(TDB_CONTEXT *tdb, char *keystr, prs_struct *ps) -{ - TDB_DATA kbuf, dbuf; - kbuf.dptr = keystr; - kbuf.dsize = strlen(keystr)+1; - - dbuf = tdb_fetch(tdb, kbuf); - if (!dbuf.dptr) return -1; - - ZERO_STRUCTP(ps); - prs_init(ps, 0, 4, UNMARSHALL); - prs_give_memory(ps, dbuf.dptr, dbuf.dsize, True); - - return 0; -} |