Permalink
Browse files

Extracted some defines in a header file.

  • Loading branch information...
1 parent 438cb60 commit 83e7019013700d4b1e1184af1c541c89ff6c63a7 @Licenser committed Mar 17, 2013
Showing with 10 additions and 8 deletions.
  1. +2 −4 src/eplugin.erl
  2. +6 −0 src/eplugin.hrl
  3. +2 −4 src/eplugin_srv.erl
View
@@ -1,5 +1,7 @@
-module(eplugin).
+-include("eplugin.hrl").
+
-export([start/0,
callbacks/1,
apply/2,
@@ -15,7 +17,6 @@
is_enabled/1,
disable/1]).
-
%% This is a library we don't want xref to spam us with the exported functions.
-ignore_xref([start/0,
callbacks/1,
@@ -34,9 +35,6 @@
-export_type([plugin_desc/0]).
--define(TABLE, plugins).
--define(CONFTABLE, plugin_config).
-
%%--------------------------------------------------------------------
%% @type plugin_desc() = {Plugin,
View
@@ -0,0 +1,6 @@
+
+%% The table we store registered callbacks in.
+-define(TABLE, plugins).
+
+%% The table we store the configuration for plugins in.
+-define(CONFTABLE, plugin_config).
View
@@ -10,6 +10,8 @@
-behaviour(gen_server).
+-include("eplugin.hrl").
+
%% API
-export([start_link/0]).
-ignore_xref([start_link/0]).
@@ -19,10 +21,6 @@
-export([provide/1, register_callbacks/2, register_callback/5]).
--define(TABLE, plugins).
--define(CONFTABLE, plugin_config).
--define(PROVTABLE, plugin_provided).
-
-define(SERVER, ?MODULE).
-record(state, {pending = [], provided = []}).

0 comments on commit 83e7019

Please sign in to comment.