/usr/include/libecasoundc/eca-control-interface.h is in libecasoundc-dev 2.9.1-7+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92  | #ifndef INCLUDED_ECA_CONTROL_INTERFACE_H
#define INCLUDED_ECA_CONTROL_INTERFACE_H
/** ------------------------------------------------------------------------
 * ecasoundc.h: C++ implementation of the Ecasound Control Interface
 * Copyright (C) 2000-2002 Kai Vehmanen
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * -------------------------------------------------------------------------
 */
#include <string>
#include <vector>
#include <ecasoundc.h>
/**
 * C++ implementation of the Ecasound Control Interface
 *
 * @author Kai Vehmanen
 */
class ECA_CONTROL_INTERFACE {
 public:
  // -------------------------------------------------------------------
  // State
  // -------------------------------------------------------------------
  bool ready(void);
  // -------------------------------------------------------------------
  // Issuing EIAM commands
  // -------------------------------------------------------------------
  void command(const std::string& cmd);
  void command_float_arg(const std::string& cmd, double arg);
  // -------------------------------------------------------------------
  // Getting return values
  // -------------------------------------------------------------------
  const std::vector<std::string>& last_string_list(void) const;
  const std::string& last_string(void) const;
  double last_float(void) const;
  int last_integer(void) const;
  bool last_bool(void) const;
  long int last_long_integer(void) const;
  const std::string& last_error(void) const;
  const std::string& last_type(void) const;
  bool error(void) const;
  /**
   * Returns last_integer() interpreted as a bool.
   */
  bool last_boolean(void) const { return(last_integer() != 0); }
  
  // -------------------------------------------------------------------
  // Events
  // -------------------------------------------------------------------
  bool events_available(void);
  void next_event(void);
  const std::string& current_event(void);
  // -------------------------------------------------------------------
  // Constructors and destructors
  // -------------------------------------------------------------------
  ECA_CONTROL_INTERFACE(void);
  ~ECA_CONTROL_INTERFACE(void);
 private:
  
  eci_handle_t eci_repp;
  mutable std::string str_rep;
  mutable std::vector<std::string> strlist_rep;
};
#endif
 |