aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-18 13:27:42 +0200
committerLoïc Hoguin <[email protected]>2011-04-18 13:27:42 +0200
commitdb7833f5e8f407ad6f61eadc970966c35d030ead (patch)
treee7a9f30dc30589d7733b08af6e737f67522e090d
parent2beb5c8206cf33f04ef778ebc67839c1bd71add8 (diff)
downloadcowboy-db7833f5e8f407ad6f61eadc970966c35d030ead.tar.gz
cowboy-db7833f5e8f407ad6f61eadc970966c35d030ead.tar.bz2
cowboy-db7833f5e8f407ad6f61eadc970966c35d030ead.zip
Move the type application_start_type() into cowboy_app.
-rw-r--r--include/types.hrl3
-rw-r--r--src/cowboy_app.erl3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/types.hrl b/include/types.hrl
index 8842a8e..684ee03 100644
--- a/include/types.hrl
+++ b/include/types.hrl
@@ -12,8 +12,5 @@
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--type application_start_type() :: normal |
- {takeover, Node::node()} | {failover, Node::node()}.
-
-type posix() :: atom().
-type port_number() :: 0..65535.
diff --git a/src/cowboy_app.erl b/src/cowboy_app.erl
index 4f81ff6..b251ff4 100644
--- a/src/cowboy_app.erl
+++ b/src/cowboy_app.erl
@@ -17,6 +17,9 @@
-export([start/2, stop/1]). %% API.
+-type application_start_type() :: normal |
+ {takeover, Node::node()} | {failover, Node::node()}.
+
-include("include/types.hrl").
%% API.