Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

main_symbian.cpp 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * WPA Supplicant / Program entrypoint for Symbian
  3. * Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #include "includes.h"
  15. extern "C" {
  16. #include "common.h"
  17. #include "wpa_supplicant_i.h"
  18. }
  19. GLDEF_C TInt E32Main(void)
  20. {
  21. struct wpa_interface iface;
  22. int exitcode = 0;
  23. struct wpa_params params;
  24. struct wpa_global *global;
  25. memset(&params, 0, sizeof(params));
  26. params.wpa_debug_level = MSG_INFO;
  27. global = wpa_supplicant_init(&params);
  28. if (global == NULL)
  29. return -1;
  30. memset(&iface, 0, sizeof(iface));
  31. /* TODO: set interface parameters */
  32. if (wpa_supplicant_add_iface(global, &iface) == NULL)
  33. exitcode = -1;
  34. if (exitcode == 0)
  35. exitcode = wpa_supplicant_run(global);
  36. wpa_supplicant_deinit(global);
  37. return exitcode;
  38. }