~ubuntu-branches/ubuntu/wily/rebar/wily

« back to all changes in this revision

Viewing changes to inttest/proto_protobuffs/src/foo.erl

  • Committer: Package Import Robot
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2015-07-04 03:25:04 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20150704032504-x2vdmdxrlmgaurko
Tags: 2.6.0-1
* New upstream released.
* Update debian/rules. (Closes: #790633)
  - Disabled test. Test of rebar became necessary retest package.
    However, this package is not yet. This is until the retest is installed on
    Debian, to disable test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
 
2
%% ex: ts=4 sw=4 et
 
3
-module(foo).
 
4
 
 
5
-export([start_link/0,
 
6
         start_link/1,
 
7
         init/1,
 
8
         terminate/2,
 
9
         handle_info/2,
 
10
         handle_call/3,
 
11
         handle_cast/2,
 
12
         code_change/3]).
 
13
 
 
14
-behavior(gen_server).
 
15
 
 
16
-include("../include/test_pb.hrl").
 
17
 
 
18
-record(state, {node :: node()}).
 
19
 
 
20
start_link() -> start_link(undefined).
 
21
 
 
22
start_link(Args) ->
 
23
    gen_server:start_link({local, ?MODULE}, ?MODULE, Args, []).
 
24
 
 
25
init(_Args) -> {ok, #state{node=node()}}.
 
26
 
 
27
terminate(_Reason, _Data) -> ok.
 
28
 
 
29
handle_info(_Info, State) -> {noreply, State}.
 
30
 
 
31
handle_cast(_Msg, State) -> {noreply, State}.
 
32
 
 
33
handle_call(_Msg, _From, State) -> {reply, ok, State}.
 
34
 
 
35
code_change(_OldVsn, State, _Extra) -> {ok, State}.