Revision ade6513a include/ImageManager.h

View differences:

include/ImageManager.h
115 115

  
116 116
    /**
117 117
     *  Closes any cloning operation on the image, updating the state if needed
118
     *    @param iid image id of the image to be released
119
     *    @param clone_img_id image id of the image that was being cloned
118
     *    @param iid image id of the image to that was being cloned
119
     *    @param clone_img_id the cloned image (id > 0) or market app (id =< 0)
120 120
     */
121 121
    void release_cloning_image(int iid, int clone_img_id);
122 122

  
......
147 147
     *
148 148
     * @return 0 if the image can be cloned, -1 otherwise
149 149
     */
150
    int can_clone_image(int             cloning_id,
151
                        ostringstream&  oss_error);
150
    int can_clone_image(int cloning_id, ostringstream&  oss_error);
151

  
152
    /**
153
     * Sets the state to CLONE for the given image
154
     *   @param new_id for the target image (new_id>0) or market app (new_id =<0)
155
     *   @param clonning_id the ID of the image to be cloned
156
     *   @param error if any
157
     *   @return 0 if siccess
158
     */
159
    int set_clone_state(int new_id, int cloning_id, std::string& error);
152 160

  
153 161
    /**
154 162
     *  Clone an existing image to the repository
......
162 170
                    int cloning_id,
163 171
                    const string& ds_data,
164 172
                    string& error);
165

  
166 173
    /**
167 174
     *  Deletes an image from the repository and the DB. The Datastore image list
168 175
     *  is also updated

Also available in: Unified diff