a major share modes reorganisation.
authorAndrew Tridgell <tridge@samba.org>
Mon, 20 Oct 1997 08:46:00 +0000 (08:46 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 20 Oct 1997 08:46:00 +0000 (08:46 +0000)
commit65ab9adaa0d356b8041ed8a507ea52117f2a284e
treee6f01020d3f1f9afaad9de7a8f111f04f18f213d
parentab849a97821c9e1f199eea8ea2ec477687bed947
a major share modes reorganisation.

The shares modes code is now split into separate files. The shared
memory implementation is in locking_shm.c. The slow implementation is
in locking_slow.c

It is all controlled by a struct share_ops structure that has function
pointers to the implementation of all the functions needed by a share
modes implementation. An initialisation function sets up this
structure. This will make adding new implementations easy and clean.

This also allowed me to get rid of the ugly code in smbstatus. Now
status.c links to the locking code and calls methods in share_ops.

I also renamed some things and generally organised things in a much
cleaner fashion. Defines and structures specific to each
implementation have been moved to the appropriate file and out of
smb.h.
source/include/proto.h
source/include/smb.h
source/locking/locking.c
source/locking/locking_shm.c [new file with mode: 0644]
source/locking/locking_slow.c [new file with mode: 0644]
source/smbd/reply.c
source/smbd/server.c
source/utils/status.c