Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.90 KB | None | 0 0
  1.     _milky_signal_t* signal;
  2.     while(signal = milky_update())
  3.     {
  4.         switch(signal->id)
  5.         {
  6.             case M_SIG_INSTALL_START:
  7.                 printf("INSTALL START LOOL\n");
  8.             break;
  9.             case M_SIG_INSTALL_DONE:
  10.                 printf("INSTALL DONE LOOL\n");
  11.             break;
  12.             case M_SIG_REMOVE_START:
  13.                 printf("REMOVE START LOOL\n");
  14.             break;
  15.             case M_SIG_REMOVE_DONE:
  16.                 printf("REMOVE DONE LOOL\n");
  17.             break;
  18.             case M_SIG_UPGRADE_START:
  19.                 printf("UPGRADE START LOOL\n");
  20.             break;
  21.             case M_SIG_UPGRADE_DONE:
  22.                 printf("UPGRADE DONE LOOL\n");
  23.             break;
  24.             case M_SIG_UPGRADE_CHECK:
  25.                 milky_answer(yesno("Continue upgrade?"));
  26.             break;
  27.             case M_SIG_REMOVE_CHECK:
  28.                 milky_answer(yesno("Continue remove?"));
  29.             break;
  30.             case M_SIG_INSTALL_CHECK:
  31.                 milky_answer(milkyhelper_s_install_check());
  32.             break;
  33.             case M_SIG_DL_STATUS:
  34.                 milkyhelper_progress_bar(signal);
  35.             break;
  36.         }
  37.         if(signal) free(signal);
  38.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement