summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-06-19 17:50:56 +0200
committerHaru <haru@dotalux.com>2015-06-19 17:53:48 +0200
commitdab99bde3b683344c4eab60035c08c4e4925525c (patch)
tree3085ebc385b2695f7b391f65124caff8d39f50bf /tools/HPMHookGen
parentcbb4020de7aa75fe87b0c3f93819e6336b94c9e3 (diff)
downloadhercules-dab99bde3b683344c4eab60035c08c4e4925525c.tar.gz
hercules-dab99bde3b683344c4eab60035c08c4e4925525c.tar.bz2
hercules-dab99bde3b683344c4eab60035c08c4e4925525c.tar.xz
hercules-dab99bde3b683344c4eab60035c08c4e4925525c.zip
Fixed HPMHookGen's inability to detect certain interface members
Private members as well as members of interfaces with more than one section are now correctly detected. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl11
-rw-r--r--tools/HPMHookGen/doxygen.conf2
2 files changed, 7 insertions, 6 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index a2e0698d3..a77b50a3b 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -280,19 +280,20 @@ foreach my $file (@files) { # Loop through the xml files
$key = "inter_homunculus";
} elsif ($key =~ /homunculus/) {
$key = "homun";
- } elsif ($key =~ /irc_bot/) {
+ } elsif ($key eq "irc_bot_interface") {
$key = "ircbot";
- } elsif ($key =~ /log_interface/) {
+ } elsif ($key eq "log_interface") {
$key = "logs";
- } elsif ($key =~ /pc_groups_interface/) {
+ } elsif ($key eq "pc_groups_interface") {
$key = "pcg";
- } elsif ($key =~ /char_interface/) {
+ } elsif ($key eq "char_interface") {
$key = "chr";
} else {
$key =~ s/_interface//;
}
- foreach my $v ($data->{compounddef}->{$filekey}->{sectiondef}->[0]) { # Loop through the sections
+ my $sectiondef = $data->{compounddef}->{$filekey}->{sectiondef};
+ foreach my $v (@$sectiondef) { # Loop through the sections
my $memberdef = $v->{memberdef};
foreach my $f (sort { # Sort the members in declaration order according to what the xml says
my $astart = $a->{location}->[0]->{bodystart} || $a->{location}->[0]->{line};
diff --git a/tools/HPMHookGen/doxygen.conf b/tools/HPMHookGen/doxygen.conf
index a8ec66627..3a848abe4 100644
--- a/tools/HPMHookGen/doxygen.conf
+++ b/tools/HPMHookGen/doxygen.conf
@@ -35,7 +35,7 @@ DISTRIBUTE_GROUP_DOC = NO
SUBGROUPING = NO
TYPEDEF_HIDES_STRUCT = NO
EXTRACT_ALL = YES
-EXTRACT_PRIVATE = NO
+EXTRACT_PRIVATE = YES
EXTRACT_STATIC = NO
EXTRACT_LOCAL_CLASSES = NO
EXTRACT_LOCAL_METHODS = NO