-- computerman is multiway user tools.
-- Computerman is Copyright (C) 2024 Manuel De Girardi ; 
--
--   This program is free software; you can redistribute it and/or modify
--   it under the terms of the GNU General Public License as published by
--   the Free Software Foundation; either version 2 of the License, or
--   (at your option) any later version.
--
--   This program is distributed in the hope that it will be useful,
--   but WITHOUT ANY WARRANTY; without even the implied warranty of
--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--   GNU General Public License for more details.
--
--   You should have received a copy of the GNU General Public License
--   along with this program; if not, write to the Free Software
--   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
--
-- Date := "2024-05-10 09:03:04"
-- Version := "0.0.0r"
with Interfaces.C;
with System;

package Computer.Midi.Porttime is

   type PtError is(PtNoError,
                   PtHostError,
                   ptAlreadyStarted,
                   ptAlreadyStopped,
                   PtInsufficientMemory);


   function Pt_Start(Resolution : Integer;
                     PtCallback : System.Address;
                     UserData : System.address) return PtError;
   pragma Import (C, Pt_Start, "Pt_Start");

   function Pt_Time return Interfaces.C.Long;
   pragma Import (C, Pt_Time, "Pt_Time");

   type Time_Access is access function return Interfaces.C.Long;
   pragma Convention(C, Time_Access);

end Computer.Midi.Porttime ;