Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

64 righe
2.2 KiB

  1. %%%-------------------------------------------------------------------
  2. %%% File : ibrowse_app.erl
  3. %%% Author : Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@t-mobile.co.uk>
  4. %%% Description :
  5. %%%
  6. %%% Created : 15 Oct 2003 by Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@t-mobile.co.uk>
  7. %%%-------------------------------------------------------------------
  8. -module(ibrowse_app).
  9. -vsn('$Id: ibrowse_app.erl,v 1.1 2005/05/05 22:28:28 chandrusf Exp $ ').
  10. -behaviour(application).
  11. %%--------------------------------------------------------------------
  12. %% Include files
  13. %%--------------------------------------------------------------------
  14. %%--------------------------------------------------------------------
  15. %% External exports
  16. %%--------------------------------------------------------------------
  17. -export([
  18. start/2,
  19. stop/1
  20. ]).
  21. %%--------------------------------------------------------------------
  22. %% Internal exports
  23. %%--------------------------------------------------------------------
  24. -export([
  25. ]).
  26. %%--------------------------------------------------------------------
  27. %% Macros
  28. %%--------------------------------------------------------------------
  29. %%--------------------------------------------------------------------
  30. %% Records
  31. %%--------------------------------------------------------------------
  32. %%====================================================================
  33. %% External functions
  34. %%====================================================================
  35. %%--------------------------------------------------------------------
  36. %% Func: start/2
  37. %% Returns: {ok, Pid} |
  38. %% {ok, Pid, State} |
  39. %% {error, Reason}
  40. %%--------------------------------------------------------------------
  41. start(_Type, _StartArgs) ->
  42. case ibrowse_sup:start_link() of
  43. {ok, Pid} ->
  44. {ok, Pid};
  45. Error ->
  46. Error
  47. end.
  48. %%--------------------------------------------------------------------
  49. %% Func: stop/1
  50. %% Returns: any
  51. %%--------------------------------------------------------------------
  52. stop(_State) ->
  53. ok.
  54. %%====================================================================
  55. %% Internal functions
  56. %%====================================================================