mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Rename src/ to lib/
This commit is contained in:
@@ -248,6 +248,77 @@ java/actions-4.c
|
||||
java/actions-5.c
|
||||
java/actions-6.c
|
||||
java/handle.c
|
||||
lib/actions-0.c
|
||||
lib/actions-1.c
|
||||
lib/actions-2.c
|
||||
lib/actions-3.c
|
||||
lib/actions-4.c
|
||||
lib/actions-5.c
|
||||
lib/actions-6.c
|
||||
lib/actions-support.c
|
||||
lib/actions-variants.c
|
||||
lib/alloc.c
|
||||
lib/appliance-cpu.c
|
||||
lib/appliance-kcmdline.c
|
||||
lib/appliance-uefi.c
|
||||
lib/appliance.c
|
||||
lib/available.c
|
||||
lib/bindtests.c
|
||||
lib/canonical-name.c
|
||||
lib/command.c
|
||||
lib/conn-socket.c
|
||||
lib/copy-in-out.c
|
||||
lib/create.c
|
||||
lib/dbdump.c
|
||||
lib/drives.c
|
||||
lib/errors.c
|
||||
lib/event-string.c
|
||||
lib/events.c
|
||||
lib/file.c
|
||||
lib/filearch.c
|
||||
lib/fuse.c
|
||||
lib/guestfs-internal-actions.h
|
||||
lib/guestfs-internal-all.h
|
||||
lib/guestfs-internal.h
|
||||
lib/guestfs.h
|
||||
lib/guid.c
|
||||
lib/handle.c
|
||||
lib/info.c
|
||||
lib/inspect-apps.c
|
||||
lib/inspect-fs-cd.c
|
||||
lib/inspect-fs-unix.c
|
||||
lib/inspect-fs-windows.c
|
||||
lib/inspect-fs.c
|
||||
lib/inspect-icon.c
|
||||
lib/inspect.c
|
||||
lib/journal.c
|
||||
lib/launch-direct.c
|
||||
lib/launch-libvirt.c
|
||||
lib/launch-uml.c
|
||||
lib/launch-unix.c
|
||||
lib/launch.c
|
||||
lib/libvirt-auth.c
|
||||
lib/libvirt-domain.c
|
||||
lib/libvirt-is-version.c
|
||||
lib/listfs.c
|
||||
lib/lpj.c
|
||||
lib/match.c
|
||||
lib/mountable.c
|
||||
lib/osinfo.c
|
||||
lib/private-data.c
|
||||
lib/proto.c
|
||||
lib/qemu.c
|
||||
lib/stringsbuf.c
|
||||
lib/structs-compare.c
|
||||
lib/structs-copy.c
|
||||
lib/structs-free.c
|
||||
lib/tmpdirs.c
|
||||
lib/tsk.c
|
||||
lib/umask.c
|
||||
lib/unit-tests.c
|
||||
lib/version.c
|
||||
lib/wait.c
|
||||
lib/whole-file.c
|
||||
lua/lua-guestfs.c
|
||||
make-fs/make-fs.c
|
||||
mllib/common_utils-c.c
|
||||
@@ -309,77 +380,6 @@ ruby/ext/guestfs/actions.h
|
||||
ruby/ext/guestfs/handle.c
|
||||
ruby/ext/guestfs/module.c
|
||||
sparsify/dummy.c
|
||||
src/actions-0.c
|
||||
src/actions-1.c
|
||||
src/actions-2.c
|
||||
src/actions-3.c
|
||||
src/actions-4.c
|
||||
src/actions-5.c
|
||||
src/actions-6.c
|
||||
src/actions-support.c
|
||||
src/actions-variants.c
|
||||
src/alloc.c
|
||||
src/appliance-cpu.c
|
||||
src/appliance-kcmdline.c
|
||||
src/appliance-uefi.c
|
||||
src/appliance.c
|
||||
src/available.c
|
||||
src/bindtests.c
|
||||
src/canonical-name.c
|
||||
src/command.c
|
||||
src/conn-socket.c
|
||||
src/copy-in-out.c
|
||||
src/create.c
|
||||
src/dbdump.c
|
||||
src/drives.c
|
||||
src/errors.c
|
||||
src/event-string.c
|
||||
src/events.c
|
||||
src/file.c
|
||||
src/filearch.c
|
||||
src/fuse.c
|
||||
src/guestfs-internal-actions.h
|
||||
src/guestfs-internal-all.h
|
||||
src/guestfs-internal.h
|
||||
src/guestfs.h
|
||||
src/guid.c
|
||||
src/handle.c
|
||||
src/info.c
|
||||
src/inspect-apps.c
|
||||
src/inspect-fs-cd.c
|
||||
src/inspect-fs-unix.c
|
||||
src/inspect-fs-windows.c
|
||||
src/inspect-fs.c
|
||||
src/inspect-icon.c
|
||||
src/inspect.c
|
||||
src/journal.c
|
||||
src/launch-direct.c
|
||||
src/launch-libvirt.c
|
||||
src/launch-uml.c
|
||||
src/launch-unix.c
|
||||
src/launch.c
|
||||
src/libvirt-auth.c
|
||||
src/libvirt-domain.c
|
||||
src/libvirt-is-version.c
|
||||
src/listfs.c
|
||||
src/lpj.c
|
||||
src/match.c
|
||||
src/mountable.c
|
||||
src/osinfo.c
|
||||
src/private-data.c
|
||||
src/proto.c
|
||||
src/qemu.c
|
||||
src/stringsbuf.c
|
||||
src/structs-compare.c
|
||||
src/structs-copy.c
|
||||
src/structs-free.c
|
||||
src/tmpdirs.c
|
||||
src/tsk.c
|
||||
src/umask.c
|
||||
src/unit-tests.c
|
||||
src/version.c
|
||||
src/wait.c
|
||||
src/whole-file.c
|
||||
sysprep/dummy.c
|
||||
test-tool/test-tool.c
|
||||
utils/boot-analysis/boot-analysis-timeline.c
|
||||
|
||||
@@ -21,7 +21,7 @@ Libguestfs uses an autotools-based build system, with the main files
|
||||
being F<configure.ac> and F<Makefile.am>. See L</THE BUILD SYSTEM>.
|
||||
|
||||
The F<generator> subdirectory contains the generator, plus files
|
||||
describing the API. The F<src> subdirectory contains source for the
|
||||
describing the API. The F<lib> subdirectory contains source for the
|
||||
library. The F<appliance> and F<daemon> subdirectories contain the
|
||||
source for the code that builds the appliance, and the code that runs
|
||||
in the appliance respectively. Other directories are covered in the
|
||||
@@ -31,7 +31,7 @@ Apart from the fact that all API entry points go via some generated
|
||||
code, the library is straightforward. (In fact, even the generated
|
||||
code is designed to be readable, and should be read as ordinary code).
|
||||
Some actions run entirely in the library, and are written as C
|
||||
functions in files under F<src>. Others are forwarded to the daemon
|
||||
functions in files under F<lib>. Others are forwarded to the daemon
|
||||
where (after some generated RPC marshalling) they appear as C
|
||||
functions in files under F<daemon>.
|
||||
|
||||
@@ -40,7 +40,7 @@ To build from source, first read the L<guestfs-building(1)>.
|
||||
=head1 SOURCE CODE SUBDIRECTORIES
|
||||
|
||||
There are a lot of subdirectories in the source tree! Which ones
|
||||
should you concentrate on first? F<src> and F<daemon> which contain
|
||||
should you concentrate on first? F<lib> and F<daemon> which contain
|
||||
the source code of the core library. F<generator> is the code
|
||||
generator described above, so that is important. The F<Makefile.am>
|
||||
in the root directory will tell you in which order the subdirectories
|
||||
@@ -169,6 +169,10 @@ under here.
|
||||
|
||||
L<virt-inspector(1)>, the virtual machine image inspector.
|
||||
|
||||
=item F<lib>
|
||||
|
||||
Source code to the C library.
|
||||
|
||||
=item F<logo>
|
||||
|
||||
Logo used on the website. The fish is called Arthur by the way.
|
||||
@@ -213,10 +217,6 @@ L<virt-resize(1)> command and documentation.
|
||||
|
||||
L<virt-sparsify(1)> command and documentation.
|
||||
|
||||
=item F<src>
|
||||
|
||||
Source code to the C library.
|
||||
|
||||
=item F<sysprep>
|
||||
|
||||
L<virt-sysprep(1)> command and documentation.
|
||||
@@ -348,7 +348,7 @@ For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the
|
||||
C<daemon/> directory.
|
||||
|
||||
For library actions, implement the function C<guestfs_impl_E<lt>nameE<gt>>
|
||||
in the C<src/> directory.
|
||||
in the C<lib/> directory.
|
||||
|
||||
In either case, use another function as an example of what to do.
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ foreach $input (@ARGV) {
|
||||
}
|
||||
}
|
||||
|
||||
# Sort the input files into directory sections. Put the 'src'
|
||||
# Sort the input files into directory sections. Put the 'lib'
|
||||
# directory first, and the rest follow in alphabetical order.
|
||||
my %dirs = ();
|
||||
foreach $input (@inputs) {
|
||||
@@ -157,9 +157,9 @@ foreach $input (@inputs) {
|
||||
push @{$dirs{$1}}, $2
|
||||
}
|
||||
sub src_first {
|
||||
if ($a eq "src" && $b eq "src") { return 0 }
|
||||
elsif ($a eq "src") { return -1 }
|
||||
elsif ($b eq "src") { return 1 }
|
||||
if ($a eq "lib" && $b eq "lib") { return 0 }
|
||||
elsif ($a eq "lib") { return -1 }
|
||||
elsif ($b eq "lib") { return 1 }
|
||||
else { return $a cmp $b }
|
||||
}
|
||||
my @dirs = sort src_first (keys %dirs);
|
||||
|
||||
Reference in New Issue
Block a user