Skip to content

Commit de3b4a5

Browse files
committed
Rename setup_lua to luaopen_augeas
1 parent 84c018a commit de3b4a5

File tree

5 files changed

+26
-17
lines changed

5 files changed

+26
-17
lines changed

doc/naturaldocs/conf/lenses/Menu.txt

+22-13
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ SubTitle: Modules
2424
# yyyy - Four digit year. 2006 is "2006"
2525
# year - Four digit year. 2006 is "2006"
2626

27+
# These are indexes you deleted, so Natural Docs will not add them again
28+
# unless you remove them from this line.
29+
30+
Don't Index: Properties
31+
2732

2833
# --------------------------------------------------------------------------
2934
#
@@ -134,7 +139,7 @@ Group: Specific Modules {
134139
File: OpenShift_Config (openshift_config.aug)
135140
File: OpenShift_Http (openshift_http.aug)
136141
File: OpenShift_Quickstarts (openshift_quickstarts.aug)
137-
File: Pagekite (pagekite.aug)
142+
File: Pagekite (pagekite.aug)
138143
File: Pam (pam.aug)
139144
File: PamConf (pamconf.aug)
140145
File: Passwd (passwd.aug)
@@ -183,9 +188,15 @@ Group: Specific Modules {
183188
File: VWware_Config (vmware_config.aug)
184189
File: Vfstab (vfstab.aug)
185190
File: Xinetd (xinetd.aug)
186-
File: Xymon (xymon.aug)
187-
File: XymonAlerting (xymonalerting.aug)
188191
File: Xorg (xorg.aug)
192+
File: ClamAV (clamav.aug)
193+
File: Dns_Zone (dns_zone.aug)
194+
File: Mailscanner (mailscanner.aug)
195+
File: Mailscanner_rules (mailscanner_rules.aug)
196+
File: MasterPasswd (masterpasswd.aug)
197+
File: Pgbouncer (pgbouncer.aug)
198+
File: PylonsPaste (pylonspaste.aug)
199+
File: Xymon_Alerting (xymon_alerting.aug)
189200
} # Group: Specific Modules
190201

191202
Group: Generic Modules {
@@ -215,10 +226,9 @@ Group: Tests and Examples {
215226
File: Test_Carbon (tests/test_carbon.aug)
216227
File: Test_Channels (tests/test_channels.aug)
217228
File: Test_Chrony (tests/test_chrony.aug)
218-
File: Test_ClamAV (tests/test_clamav.aug)
219229
File: Test_Collectd (tests/test_collectd.aug)
220230
File: Test_CPanel (tests/test_cpanel.aug)
221-
File: Test_CSV (tests/test_csv.aug)
231+
File: test_csv.aug (tests/test_csv.aug)
222232
File: Test_Cups (tests/test_cups.aug)
223233
File: Test_Dovecot (tests/test_dovecot.aug)
224234
File: Test_Erlang (tests/test_erlang.aug)
@@ -240,8 +250,6 @@ Group: Tests and Examples {
240250
File: Test_Ldso (tests/test_ldso.aug)
241251
File: Test_Lightdm (tests/test_lightdm.aug)
242252
File: Test_LVM (tests/test_lvm.aug)
243-
File: Test_Mailscanner (tests/test_mailscanner.aug)
244-
File: Test_Mailscanner_Rules (tests/test_mailscanner_rules.aug)
245253
File: Test_MCollective (tests/test_mcollective.aug)
246254
File: Test_Memcached (tests/test_memcached.aug)
247255
File: Test_MongoDBServer (tests/test_mongodbserver.aug)
@@ -252,21 +260,18 @@ Group: Tests and Examples {
252260
File: Test_OpenShift_Config (tests/test_openshift_config.aug)
253261
File: Test_OpenShift_Http (tests/test_openshift_http.aug)
254262
File: Test_OpenShift_Quickstarts (tests/test_openshift_quickstarts.aug)
255-
File: Test_Pgbouncer (tests/test_pgbouncer.aug)
256263
File: Test_Postfix_Transport (tests/test_postfix_transport.aug)
257264
File: Test_Postfix_Virtual (tests/test_postfix_virtual.aug)
258265
File: Test_Postgresql (tests/test_postgresql.aug)
259266
File: Test_Protocols (tests/test_protocols.aug)
260267
File: Test_Puppet_Auth (tests/test_puppet_auth.aug)
261268
File: Test_Puppetfile (tests/test_puppetfile.aug)
262-
File: Test_Pylonspaste (tests/test_pylonspaste.aug)
263269
File: Test_Qpid (tests/test_qpid.aug)
264270
File: Test_Quote (tests/test_quote.aug)
265271
File: Test_Rabbitmq (tests/test_rabbitmq.aug)
266272
File: Test_Redis (tests/test_redis.aug)
267273
File: Test_Reprepro_Uploaders (tests/test_reprepro_uploaders.aug)
268274
File: Test_Rhsm (tests/test_rhsm.aug)
269-
File: Test_Rmt (tests/test_rmt.aug)
270275
File: Test_Rsyslog (tests/test_rsyslog.aug)
271276
File: Test_Simplelines (tests/test_simplelines.aug)
272277
File: Test_Simplevars (tests/test_simplevars.aug)
@@ -277,19 +282,23 @@ Group: Tests and Examples {
277282
File: Test_Systemd (tests/test_systemd.aug)
278283
File: Test_Thttpd (tests/test_thttpd.aug)
279284
File: Test_Tmpfiles (tests/test_tmpfiles.aug)
280-
File: Test_Tuned (tests/test_tuned.aug)
281285
File: Test_Up2date (tests/test_up2date.aug)
282286
File: Test_UpdateDB (tests/test_updatedb.aug)
283287
File: Test_VMware_Config (tests/test_vmware_config.aug)
284288
File: Test_Xml (tests/test_xml.aug)
285-
File: Test_Xymon (tests/test_xymon.aug)
286-
File: Test_XymonAlerting (tests/test_xymonalerting.aug)
287289
File: Test_Yum (tests/test_yum.aug)
288290
File: Test_login_defs (tests/test_login_defs.aug)
289291
File: Test_sssd (tests/test_sssd.aug)
290292
File: Test_sudoers (no auto-title, tests/test_sudoers.aug)
291293
File: Test_ssh (tests/test_ssh.aug)
292294
File: Test_sshd (tests/test_sshd.aug)
295+
File: AptPreferences.pin (tests/test_aptpreferences.aug)
296+
File: Desktop.lns (tests/test_desktop.aug)
297+
File: test_httpd.aug (tests/test_httpd.aug)
298+
File: test_shellvars.aug (tests/test_shellvars.aug)
299+
File: test_shellvars_list.aug (tests/test_shellvars_list.aug)
300+
File: test_slapd.aug (tests/test_slapd.aug)
301+
File: Test_Xymon_Alerting (tests/test_xymon_alerting.aug)
293302
} # Group: Tests and Examples
294303

295304
Group: Index {

src/augeas_sym.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ AUGEAS_0.18.0 {
6969
AUGEAS_0.20.0 {
7070
global:
7171
aug_escape_name;
72-
setup_lua;
72+
luaopen_augeas;
7373
} AUGEAS_0.18.0;

src/auglua.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ static int lua_aug_transform(lua_State *L) {
463463
return 0;
464464
}
465465

466-
struct lua_State *setup_lua(augeas *a) {
466+
struct lua_State *luaopen_augeas(augeas *a) {
467467
lua_State *L = luaL_newstate();
468468
luaL_openlibs(L);
469469

src/auglua.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
extern "C" {
2929
#endif
3030

31-
struct lua_State *setup_lua(augeas *a);
31+
struct lua_State *luaopen_augeas(augeas *a);
3232

3333
#ifdef __cplusplus
3434
}

src/augtool.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ int main(int argc, char **argv) {
723723
}
724724

725725
if (use_lua)
726-
LS = setup_lua(aug);
726+
LS = luaopen_augeas(aug);
727727

728728
add_transforms(transforms, transformslen);
729729
if (print_version) {

0 commit comments

Comments
 (0)