您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

63 行
2.1 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. -behaviour(application).
  10. %%--------------------------------------------------------------------
  11. %% Include files
  12. %%--------------------------------------------------------------------
  13. %%--------------------------------------------------------------------
  14. %% External exports
  15. %%--------------------------------------------------------------------
  16. -export([
  17. start/2,
  18. stop/1
  19. ]).
  20. %%--------------------------------------------------------------------
  21. %% Internal exports
  22. %%--------------------------------------------------------------------
  23. -export([
  24. ]).
  25. %%--------------------------------------------------------------------
  26. %% Macros
  27. %%--------------------------------------------------------------------
  28. %%--------------------------------------------------------------------
  29. %% Records
  30. %%--------------------------------------------------------------------
  31. %%====================================================================
  32. %% External functions
  33. %%====================================================================
  34. %%--------------------------------------------------------------------
  35. %% Func: start/2
  36. %% Returns: {ok, Pid} |
  37. %% {ok, Pid, State} |
  38. %% {error, Reason}
  39. %%--------------------------------------------------------------------
  40. start(_Type, _StartArgs) ->
  41. case ibrowse_sup:start_link() of
  42. {ok, Pid} ->
  43. {ok, Pid};
  44. Error ->
  45. Error
  46. end.
  47. %%--------------------------------------------------------------------
  48. %% Func: stop/1
  49. %% Returns: any
  50. %%--------------------------------------------------------------------
  51. stop(_State) ->
  52. ok.
  53. %%====================================================================
  54. %% Internal functions
  55. %%====================================================================