export all modules under sjson and swayipc

This commit is contained in:
Almarhoon Ibraheem 2024-06-26 00:46:06 +03:00
parent 3511abd7d4
commit c686dd7a0e
2 changed files with 48 additions and 0 deletions

22
sjson.scm Normal file
View file

@ -0,0 +1,22 @@
;;; Commentary:
;;; Code:
(define-module (sjson)
#:use-module (sjson builder)
#:use-module (sjson parser)
#:use-module (sjson record))
(define-syntax re-export-modules
(syntax-rules ()
((_ (mod ...) ...)
(begin
(module-use! (module-public-interface (current-module))
(resolve-interface '(mod ...)))
...))))
(re-export-modules (sjson builder)
(sjson parser)
(sjson record))
;;; (sjson) ends here

26
swayipc.scm Normal file
View file

@ -0,0 +1,26 @@
;;; Commentary:
;;; Code:
(define-module (swayipc)
#:use-module (swayipc connection)
#:use-module (swayipc dispatcher)
#:use-module (swayipc events)
#:use-module (swayipc info)
#:use-module (swayipc records))
(define-syntax re-export-modules
(syntax-rules ()
((_ (mod ...) ...)
(begin
(module-use! (module-public-interface (current-module))
(resolve-interface '(mod ...)))
...))))
(re-export-modules (swayipc connection)
(swayipc dispatcher)
(swayipc events)
(swayipc info)
(swayipc records))
;;; (swayipc) ends here