summaryrefslogtreecommitdiffstats
path: root/extras/emacs/plugin.el
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-08-10 16:22:48 -0400
committerDave Barach <openvpp@barachs.net>2018-08-11 00:07:10 +0000
commitd7a37a75625dd5f09cdb99e0de6e40b49dd9a0d0 (patch)
treee2a4c5cd4aa7b90b90cb5bd28099731bbca11017 /extras/emacs/plugin.el
parent7eb9d9608b5b47b95f4860b2c470411658f7cdac (diff)
emacs skeletons: add quad/single, avx2/avx512 support
Change-Id: Ib8095ad69620308d6199ab030a754ee45f92e59b Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'extras/emacs/plugin.el')
-rw-r--r--extras/emacs/plugin.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/extras/emacs/plugin.el b/extras/emacs/plugin.el
index bf6e123bc86..1481c66dfa8 100644
--- a/extras/emacs/plugin.el
+++ b/extras/emacs/plugin.el
@@ -19,7 +19,10 @@
(setq start-dir default-directory)
(makunbound 'plugin-name)
(makunbound 'PLUGIN-NAME)
+ (makunbound 'plugin-flavor)
(setq plugin-name (read-string "Plugin name: "))
+ (setq plugin-flavor
+ (read-string "Dispatch type [dual or qs]: "))
(setq PLUGIN-NAME (upcase plugin-name))
(find-file (concat plugin-name ".am"))
(skel-plugin-makefile-am-fragment)
@@ -38,10 +41,13 @@
(find-file (concat plugin-name "_msg_enum.h"))
(skel-plugin-msg-enum)
(find-file "node.c")
- (skel-plugin-node)
+ (if (string= plugin-flavor "qs")
+ (skel-plugin-qsnode) (skel-plugin-node))
(find-file (concat plugin-name "_test.c"))
(skel-plugin-test)
(find-file (concat plugin-name "_periodic.c"))
(skel-plugin-periodic)
+ (find-file "setup.pg")
+ (skel-plugin-setup)
(cd start-dir))))