Since 'add' and 'edit' share the same logic, I moved the code of 'gcal_create_event' to an internal static function to share it.
Since 'add' and 'edit' share the same logic, I moved the code of 'gcal_create_event' to an internal static function to share it.

Next step: 'gcal_edit_event'.

Adenilson/libgcal,Adenilson/libgcal,mback2k/libgcal